函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lk_queue_max_hw_sectors - set max sectors for a request for this queue*@q: the request queue for the device*@max_hw_sectors: max hardware sectors in the usual 512b unit* Description:* Enables a low level driver to set a hard upper limit,

函数原型:void blk_queue_max_hw_sectors(struct request_queue *q, unsigned int max_hw_sectors)

返回类型:void

参数:

类型参数名称
struct request_queue *q
unsigned intmax_hw_sectors
185  limits等于limits
188  如果max_hw_sectors左移9位小于PAGE_SIZE
189  max_hw_sectors等于1左移PAGE_SHIFT determines the page size 减9位
190  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
194  max_hw_sectors等于max_hw_sectors
195  max_sectors等于min_not_zero - return the minimum that is _not_ zero, unless both are zero*@x: value1*@y: value2(max_hw_sectors, max_dev_sectors)
196  max_sectors等于min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsignedint, max_sectors, BLK_DEF_MAX_SECTORS)
197  max_sectors等于max_sectors
198  max allowed IO size 等于max_sectors右移PAGE_SHIFT determines the page size 减9位