Function report | 
Source Code:block\ioctl.c | 
Create Date:2022-07-28 17:16:08 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:blk_ioctl_discard
Proto:static int blk_ioctl_discard(struct block_device *bdev, fmode_t mode, unsigned long arg, unsigned long flags)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct block_device * | bdev | |
| fmode_t | mode | |
| unsigned long | arg | |
| unsigned long | flags | 
| 179 | q = bdev_get_queue(bdev) | 
| 183 | If Not (mode & le is open for writing ) Then Return -EBADF | 
| 186 | If Not blk_queue_discard(q) Then Return -EOPNOTSUPP | 
| 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  |