函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lk_stack_limits - adjust queue_limits for stacked devices*@t: the stacking driver limits (top device)*@b: the underlying queue limits (bottom, component device)*@start: first data sector within component device* Description:* This function is used by

函数原型:int blk_stack_limits(struct queue_limits *t, struct queue_limits *b, sector_t start)

返回类型:int

参数:

类型参数名称
struct queue_limits *t
struct queue_limits *b
sector_tstart
500  ret等于0
502  max_sectors等于min_not_zero - return the minimum that is _not_ zero, unless both are zero*@x: value1*@y: value2(max_sectors, max_sectors)
503  max_hw_sectors等于min_not_zero - return the minimum that is _not_ zero, unless both are zero*@x: value1*@y: value2(max_hw_sectors, max_hw_sectors)
504  max_dev_sectors等于min_not_zero - return the minimum that is _not_ zero, unless both are zero*@x: value1*@y: value2(max_dev_sectors, max_dev_sectors)
505  max_write_same_sectors等于两数取小(max_write_same_sectors, max_write_same_sectors)
507  max_write_zeroes_sectors等于两数取小(max_write_zeroes_sectors, max_write_zeroes_sectors)
509  bounce_pfn等于min_not_zero - return the minimum that is _not_ zero, unless both are zero*@x: value1*@y: value2(bounce_pfn, bounce_pfn)
511  seg_boundary_mask等于min_not_zero - return the minimum that is _not_ zero, unless both are zero*@x: value1*@y: value2(seg_boundary_mask, seg_boundary_mask)
513  virt_boundary_mask等于min_not_zero - return the minimum that is _not_ zero, unless both are zero*@x: value1*@y: value2(virt_boundary_mask, virt_boundary_mask)
516  max_segments等于min_not_zero - return the minimum that is _not_ zero, unless both are zero*@x: value1*@y: value2(max_segments, max_segments)
517  max_discard_segments等于min_not_zero - return the minimum that is _not_ zero, unless both are zero*@x: value1*@y: value2(max_discard_segments, max_discard_segments)
519  max_integrity_segments等于min_not_zero - return the minimum that is _not_ zero, unless both are zero*@x: value1*@y: value2(max_integrity_segments, max_integrity_segments)
522  max_segment_size等于min_not_zero - return the minimum that is _not_ zero, unless both are zero*@x: value1*@y: value2(max_segment_size, max_segment_size)
525  misaligned或等于misaligned
527  alignment等于queue_limit_alignment_offset(b, start)
532  如果alignment_offset不等于alignment
534  top等于两数取大(physical_block_size, io_min)加alignment_offset
536  bottom等于两数取大(physical_block_size, io_min)加alignment
539  如果两数取大(top, bottom)取模两数取小(top, bottom)则
540  misaligned等于1
541  ret等于负1
545  logical_block_size等于两数取大(logical_block_size, logical_block_size)
548  physical_block_size等于两数取大(physical_block_size, physical_block_size)
551  io_min等于两数取大(io_min, io_min)
552  io_opt等于lcm_not_zero(io_opt, io_opt)
555  如果physical_block_size按位与logical_block_size减1则
556  physical_block_size等于logical_block_size
557  misaligned等于1
558  ret等于负1
562  如果io_min按位与physical_block_size减1则
563  io_min等于physical_block_size
564  misaligned等于1
565  ret等于负1
569  如果io_opt按位与physical_block_size减1则
570  io_opt等于0
571  misaligned等于1
572  ret等于负1
575  raid_partial_stripes_expensive等于两数取大(raid_partial_stripes_expensive, raid_partial_stripes_expensive)
580  alignment_offset等于lcm_not_zero(alignment_offset, alignment)取模两数取大(physical_block_size, io_min)
584  如果alignment_offset按位与logical_block_size减1则
585  misaligned等于1
586  ret等于负1
590  如果discard_granularity
591  alignment等于queue_limit_discard_alignment(b, start)
593  如果discard_granularity不等于0且discard_alignment不等于alignment
599  如果两数取大(top, bottom)取模两数取小(top, bottom)不等于0则discard_misaligned等于1
603  max_discard_sectors等于min_not_zero - return the minimum that is _not_ zero, unless both are zero*@x: value1*@y: value2(max_discard_sectors, max_discard_sectors)
605  max_hw_discard_sectors等于min_not_zero - return the minimum that is _not_ zero, unless both are zero*@x: value1*@y: value2(max_hw_discard_sectors, max_hw_discard_sectors)
607  discard_granularity等于两数取大(discard_granularity, discard_granularity)
609  discard_alignment等于lcm_not_zero(discard_alignment, alignment)取模discard_granularity
613  如果chunk_sectorschunk_sectors等于min_not_zero - return the minimum that is _not_ zero, unless both are zero*@x: value1*@y: value2(chunk_sectors, chunk_sectors)
617  返回:ret
调用者
名称描述
blk_queue_stack_limits继承底层驱动的底层队列限制
bdev_stack_limitsdev_stack_limits - adjust queue limits for stacked drivers*@t: the stacking driver limits (top device)*@bdev: the component block_device (bottom)*@start: first data sector within component device* Description: