Function report |
Source Code:block\blk-zoned.c |
Create Date:2022-07-28 18:06:04 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:BLKREPORTZONE ioctl processing.* Called from blkdev_ioctl.
Proto:int blkdev_report_zones_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct block_device * | bdev | |
fmode_t | mode | |
unsigned int | cmd | |
unsigned long | arg |
246 | q = bdev_get_queue(bdev) |
250 | If Not blk_queue_is_zoned(q) Then Return -ENOTTY |
253 | If Not Check operation authority Then Return -EACCES |
256 | If copy_from_user( & rep, argp, sizeof(structblk_zone_report)) Then Return -EFAULT |
262 | zones = argp + sizeof(structblk_zone_report) |
269 | If copy_to_user(argp, & rep, sizeof(structblk_zone_report)) Then Return -EFAULT |
271 | Return 0 |
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 |