Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:queue_max_sectors_store

Proto:static ssize_t queue_max_sectors_store(struct request_queue *q, const char *page, size_t count)

Type:ssize_t

Parameter:

TypeParameterName
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  If ret < 0 Then Return 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  If max_sectors_kb > max_hw_sectors_kb || max_sectors_kb < page_kb Then Return -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  Return ret