函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\blkdev.h Create Date:2022-07-27 06:47:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:queue_max_discard_segments

函数原型:static inline unsigned short queue_max_discard_segments(const struct request_queue *q)

返回类型:unsigned short

参数:

类型参数名称
const struct request_queue *q
1286  返回:max_discard_segments
调用者
名称描述
bio_attempt_discard_merge
queue_max_discard_segments_show
req_attempt_discard_merge
blk_discard_mergableTwo cases of handling DISCARD merge:* If max_discard_segments > 1, the driver takes every bio* as a range and send them to controller together. The ranges* needn't to be contiguous.* Otherwise, the bios/requests will be handled as same as