Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__sbq_wake_up

Proto:static bool __sbq_wake_up(struct sbitmap_queue *sbq)

Type:bool

Parameter:

TypeParameterName
struct sbitmap_queue *sbq
517  ws = sbq_wake_ptr(sbq)
518  If Not ws Then Return false
521  wait_cnt = atomic_dec_return( & @wait_cnt: Number of frees remaining before we wake up.)
522  If wait_cnt <= 0 Then
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  If ret == wait_cnt Then
543  Return false
546  Return true
549  Return false
Caller
NameDescribe
sbitmap_queue_wake_up