函数逻辑报告

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

函数名称:Return maximum size of a request at given offset. Only valid for* file system requests.

函数原型:static inline unsigned int blk_max_size_offset(struct request_queue *q, sector_t offset)

返回类型:unsigned int

参数:

类型参数名称
struct request_queue *q
sector_toffset
1013  如果非chunk_sectors则返回:max_sectors
1016  返回:两数取小(max_sectors, (unsignedint)(chunk_sectors - (offset & (chunk_sectors - 1))))
调用者
名称描述
get_max_io_sizeReturn the maximum number of sectors from the start of a bio that may be* submitted as a single request to a block device. If enough sectors remain,* align the end to the physical block size. Otherwise align the end to the* logical block size
blk_rq_get_max_sectors