Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\blkdev.h Create Date:2022-07-28 05:46:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blk_rq_get_max_sectors

Proto:static inline unsigned int blk_rq_get_max_sectors(struct request *rq, sector_t offset)

Type:unsigned int

Parameter:

TypeParameterName
struct request *rq
sector_toffset
1023  q = q
1025  If blk_rq_is_passthrough(rq) Then Return max_hw_sectors
1028  If Not chunk_sectors || req_op(rq) == REQ_OP_DISCARD || req_op(rq) == REQ_OP_SECURE_ERASE Then Return blk_queue_get_max_sectors(q, req_op(rq))
1033  Return min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(Return maximum size of a request at given offset. Only valid for* file system requests., blk_queue_get_max_sectors(q, req_op(rq)))
Caller
NameDescribe
bio_attempt_discard_merge
ll_back_merge_fn
ll_front_merge_fn
req_attempt_discard_merge
ll_merge_requests_fn