函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sbq_calc_wake_batch

函数原型:static unsigned int sbq_calc_wake_batch(struct sbitmap_queue *sbq, unsigned int depth)

返回类型:unsigned int

参数:

类型参数名称
struct sbitmap_queue *sbq
unsigned intdepth
343  shallow_depth等于两数取小(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两数取小(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  返回:wake_batch
调用者
名称描述
sbitmap_queue_init_node
sbitmap_queue_update_wake_batch