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_queue_get_max_sectors

Proto:static inline unsigned int blk_queue_get_max_sectors(struct request_queue *q, int op)

Type:unsigned int

Parameter:

TypeParameterName
struct request_queue *q
intop
993  If Value for the false possibility is greater at compile time(op == REQ_OP_DISCARD || op == REQ_OP_SECURE_ERASE) Then Return min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(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  If Value for the false possibility is greater at compile time(op == REQ_OP_WRITE_SAME) Then Return max_write_same_sectors
1000  If Value for the false possibility is greater at compile time(op == REQ_OP_WRITE_ZEROES) Then Return max_write_zeroes_sectors
1003  Return max_sectors
Caller
NameDescribe
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