Function report |
Source Code:block\blk-zoned.c |
Create Date:2022-07-28 18:06:08 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:BLKRESETZONE, BLKOPENZONE, BLKCLOSEZONE and BLKFINISHZONE ioctl processing.* Called from blkdev_ioctl.
Proto:int blkdev_zone_mgmt_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 |
289 | q = bdev_get_queue(bdev) |
293 | If Not blk_queue_is_zoned(q) Then Return -ENOTTY |
296 | If Not Check operation authority Then Return -EACCES |
299 | If Not (mode & le is open for writing ) Then Return -EBADF |
302 | If copy_from_user( & zrange, argp, sizeof(structblk_zone_range)) Then Return -EFAULT |
306 | Case cmd == BLKRESETZONE |
307 | op = REQ_OP_ZONE_RESET |
308 | Break |
309 | Case cmd == BLKOPENZONE |
310 | op = REQ_OP_ZONE_OPEN |
311 | Break |
312 | Case cmd == BLKCLOSEZONE |
313 | op = REQ_OP_ZONE_CLOSE |
314 | Break |
315 | Case cmd == BLKFINISHZONE |
316 | op = REQ_OP_ZONE_FINISH |
317 | Break |
318 | Default |
319 | Return -ENOTTY |
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 |