Function report | 
Source Code:block\ioctl.c | 
Create Date:2022-07-28 17:16:30 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:blkdev_roset
Proto:static int blkdev_roset(struct block_device *bdev, fmode_t mode, unsigned cmd, unsigned long arg)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct block_device * | bdev | |
| fmode_t | mode | |
| unsigned | cmd | |
| unsigned long | arg | 
| 420 | If Not Check operation authority Then Return -EACCES | 
| 426 | If Get a simple variable from user space(n, (int__user * )arg) Then Return -EFAULT | 
| 428 | set_device_ro(bdev, n) | 
| 429 | Return 0 | 
| Name | Describe | 
|---|---|
| blkdev_ioctl | always keep this in sync with compat_blkdev_ioctl() | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |