Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-settings.c Create Date:2022-07-28 17:03:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:reset limits to default values

Proto:void blk_set_default_limits(struct queue_limits *lim)

Type:void

Parameter:

TypeParameterName
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
Caller
NameDescribe
blk_set_stacking_limitsset default limits for stacking devices
blk_queue_make_requestdefine an alternate make_request function for a device