函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-zoned.c Create Date:2022-07-27 19:41:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:BLKREPORTZONE ioctl processing.* Called from blkdev_ioctl.

函数原型:int blkdev_report_zones_ioctl(struct block_device *bdev, fmode_t mode, unsigned int cmd, unsigned long arg)

返回类型:int

参数:

类型参数名称
struct block_device *bdev
fmode_tmode
unsigned intcmd
unsigned longarg
237  __userargp等于arg
243  如果非argp则返回:负EINVAL
246  q等于bdev_get_queue(bdev)
247  如果非q则返回:负ENXIO
250  如果非blk_queue_is_zoned(q)则返回:负ENOTTY
253  如果非操作权限检查则返回:负EACCES
256  如果copy_from_user( & rep, argp, sizeof(structblk_zone_report))则返回:负EFAULT
259  如果非nr_zones则返回:负EINVAL
262  zones等于argpsizeof(structblk_zone_report)
263  ret等于lkdev_report_zones - Get zones information*@bdev: Target block device*@sector: Sector from which to report zones*@nr_zones: Maximum number of zones to report*@cb: Callback function called for each reported zone*@data: Private data for the callback*
265  如果ret小于0则返回:ret
268  nr_zones等于ret
269  如果copy_to_user(argp, & rep, sizeof(structblk_zone_report))则返回:负EFAULT
271  返回:0