函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:queue_max_sectors_store

函数原型:static ssize_t queue_max_sectors_store(struct request_queue *q, const char *page, size_t count)

返回类型:ssize_t

参数:

类型参数名称
struct request_queue *q
const char *page
size_tcount
224  max_hw_sectors_kb等于queue_max_hw_sectors(q)右移1位, page_kb等于1左移PAGE_SHIFT determines the page size 减10位
227  ret等于queue_var_store( & max_sectors_kb, page, count)
229  如果ret小于0则返回:ret
232  max_hw_sectors_kb等于min_not_zero - return the minimum that is _not_ zero, unless both are zero*@x: value1*@y: value2(max_hw_sectors_kb, (unsignedlong)max_dev_sectors >> 1)
235  如果max_sectors_kb大于max_hw_sectors_kbmax_sectors_kb小于page_kb则返回:负EINVAL
238  spin_lock_irq( & queue_lock)
239  max_sectors等于max_sectors_kb左移1位
240  max allowed IO size 等于max_sectors_kb右移PAGE_SHIFT determines the page size 减10位
241  spin_unlock_irq( & queue_lock)
243  返回:ret