函数逻辑报告

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_queue_get_max_sectors

函数原型:static inline unsigned int blk_queue_get_max_sectors(struct request_queue *q, int op)

返回类型:unsigned int

参数:

类型参数名称
struct request_queue *q
intop
993  如果此条件成立可能性小(为编译器优化)(op == REQ_OP_DISCARD || op == REQ_OP_SECURE_ERASE)则返回:两数取小(max_discard_sectors, UINT_MAX >> The basic unit of block I/O is a sector. It is used in a number of contexts* in Linux (blk, bio, genhd). The size of one sector is 512 = 2**9* bytes. Variables of type sector_t represent an offset or size that is a* multiple of 512 bytes)
997  如果此条件成立可能性小(为编译器优化)(op == REQ_OP_WRITE_SAME)则返回:max_write_same_sectors
1000  如果此条件成立可能性小(为编译器优化)(op == REQ_OP_WRITE_ZEROES)则返回:max_write_zeroes_sectors
1003  返回:max_sectors
调用者
名称描述
blk_cloned_rq_check_limitslk_cloned_rq_check_limits - Helper function to check a cloned request* for new the queue limits*@q: the queue*@rq: the request being checked* Description:*@rq may have been made based on weaker limitations of upper-level queues
blk_rq_get_max_sectors