函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lkdev_nr_zones - Get number of zones*@disk: Target gendisk* Return the total number of zones of a zoned block device. For a block* device without zone capabilities, the number of zones is always 0.

函数原型:unsigned int blkdev_nr_zones(struct gendisk *disk)

返回类型:unsigned int

参数:

类型参数名称
struct gendisk *disk
82  zone_sectors等于blk_queue_zone_sectors(queue)
84  如果非blk_queue_is_zoned(queue)则返回:0
86  返回:get_capacity(disk)加zone_sectors减1右移log2 - log base 2 of 32-bit or a 64-bit unsigned value*@n: parameter* constant-capable log of base 2 calculation* - this can be used to initialise global variables from constant data, hence* the massive ternary operator construction* selects the (zone_sectors)位