函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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*

函数原型:int blkdev_report_zones(struct block_device *bdev, sector_t sector, unsigned int nr_zones, report_zones_cb cb, void *data)

返回类型:int

参数:

类型参数名称
struct block_device *bdev
sector_tsector
unsigned intnr_zones
report_zones_cbcb
void *data
112  disk等于bd_disk
113  capacity等于get_capacity(disk)
115  如果非blk_queue_is_zoned(bdev_get_queue(bdev))或WARN_ON_ONCE(!report_zones)则返回:负EOPNOTSUPP
119  如果非nr_zonessector大于等于capacity则返回:0
122  返回:report_zones(disk, sector, nr_zones, cb, data)
调用者
名称描述
blkdev_report_zones_ioctlBLKREPORTZONE ioctl processing.* Called from blkdev_ioctl.