Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-settings.c Create Date:2022-07-28 17:03:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:set max sectors for a request for this queue

Proto:void blk_queue_max_hw_sectors(struct request_queue *q, unsigned int max_hw_sectors)

Type:void

Parameter:

TypeParameterName
struct request_queue *q
unsigned intmax_hw_sectors
185  limits = limits
188  If max_hw_sectors << 9 < PAGE_SIZE Then
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