Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:queue_discard_max_store

Proto:static ssize_t queue_discard_max_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
185  ret = queue_var_store( & max_discard, page, count)
187  If ret < 0 Then Return ret
190  If max_discard & discard_granularity - 1 Then Return -EINVAL
193  max_discard >>= 9
194  If max_discard > UINT_MAX Then Return -EINVAL
197  If max_discard > max_hw_discard_sectors Then max_discard = max_hw_discard_sectors
200  max_discard_sectors = max_discard
201  Return ret