Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sbq_calc_wake_batch

Proto:static unsigned int sbq_calc_wake_batch(struct sbitmap_queue *sbq, unsigned int depth)

Type:unsigned int

Parameter:

TypeParameterName
struct sbitmap_queue *sbq
unsigned intdepth
343  shallow_depth = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(1U << @shift: log2(number of bits used per word), @min_shallow_depth: The minimum shallow depth which may be passed to* sbitmap_queue_get_shallow() or __sbitmap_queue_get_shallow().)
344  depth = (depth >> @shift: log2(number of bits used per word)) * shallow_depth + min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(depth & ((1U << @shift: log2(number of bits used per word)) - 1), shallow_depth)
346  wake_batch = clamp_t - return a value clamped to a given range using a given type*@type: the type of variable to use*@val: current value*@lo: minimum allowable value*@hi: maximum allowable value* This macro does no typechecking and uses temporary variables of type(unsignedint, depth / SBQ_WAIT_QUEUES, 1, SBQ_WAKE_BATCH)
349  Return wake_batch
Caller
NameDescribe
sbitmap_queue_init_node
sbitmap_queue_update_wake_batch