函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:blk_rq_get_max_sectors

函数原型:static inline unsigned int blk_rq_get_max_sectors(struct request *rq, sector_t offset)

返回类型:unsigned int

参数:

类型参数名称
struct request *rq
sector_toffset
1023  q等于q
1025  如果blk_rq_is_passthrough(rq)则返回:max_hw_sectors
1028  如果非chunk_sectorsreq_op(rq)恒等于REQ_OP_DISCARDreq_op(rq)恒等于REQ_OP_SECURE_ERASE则返回:blk_queue_get_max_sectors(q, req_op(rq))
1033  返回:两数取小(Return maximum size of a request at given offset. Only valid for* file system requests., blk_queue_get_max_sectors(q, req_op(rq)))
调用者
名称描述
bio_attempt_discard_merge
ll_back_merge_fn
ll_front_merge_fn
req_attempt_discard_merge
ll_merge_requests_fn