函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__sbq_wake_up

函数原型:static bool __sbq_wake_up(struct sbitmap_queue *sbq)

返回类型:bool

参数:

类型参数名称
struct sbitmap_queue *sbq
517  ws等于sbq_wake_ptr(sbq)
518  如果非ws则返回:false
521  wait_cnt等于atomic_dec_return( & @wait_cnt: Number of frees remaining before we wake up.)
522  如果wait_cnt小于等于0则
525  wake_batch等于READ_ONCE(@wake_batch: Number of bits which must be freed before we wake up any* waiters.)
532  smp_mb__before_atomic()
539  ret等于atomic_cmpxchg( & @wait_cnt: Number of frees remaining before we wake up., wait_cnt, wake_batch)
540  如果ret恒等于wait_cnt
543  返回:false
546  返回:true
549  返回:false
调用者
名称描述
sbitmap_queue_wake_up