函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-settings.c Create Date:2022-07-27 18:38:35
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:lk_set_default_limits - reset limits to default values*@lim: the queue_limits structure to reset* Description:* Returns a queue_limit struct to its default state.

函数原型:void blk_set_default_limits(struct queue_limits *lim)

返回类型:void

参数:

类型参数名称
struct queue_limits *lim
40  max_segments等于BLK_MAX_SEGMENTS
41  max_discard_segments等于1
42  max_integrity_segments等于0
43  seg_boundary_mask等于BLK_SEG_BOUNDARY_MASK
44  virt_boundary_mask等于0
45  max_segment_size等于BLK_MAX_SEGMENT_SIZE
46  max_sectors等于max_hw_sectors等于BLK_SAFE_MAX_SECTORS
47  max_dev_sectors等于0
48  chunk_sectors等于0
49  max_write_same_sectors等于0
50  max_write_zeroes_sectors等于0
51  max_discard_sectors等于0
52  max_hw_discard_sectors等于0
53  discard_granularity等于0
54  discard_alignment等于0
55  discard_misaligned等于0
56  logical_block_size等于physical_block_size等于io_min等于512
57  bounce_pfn等于BLK_BOUNCE_ANY右移PAGE_SHIFT determines the page size
58  alignment_offset等于0
59  io_opt等于0
60  misaligned等于0
61  zoned等于Regular block device
调用者
名称描述
blk_set_stacking_limitslk_set_stacking_limits - set default limits for stacking devices*@lim: the queue_limits structure to reset* Description:* Returns a queue_limit struct to its default state. Should be used* by stacking drivers like DM that have no internal limits.
blk_queue_make_request为设备定义一个备用make_request功能