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:sbitmap_queue_clear

Proto:void sbitmap_queue_clear(struct sbitmap_queue *sbq, unsigned int nr, unsigned int cpu)

Type:void

Parameter:

TypeParameterName
struct sbitmap_queue *sbq
unsigned intnr
unsigned intcpu
572  smp_mb__before_atomic()
573  This one is special, since it doesn't actually clear the bit, rather it* sets the corresponding bit in the ->cleared mask instead. Paired with* the caller doing sbitmap_deferred_clear() if a given index is full, which
581  smp_mb__after_atomic()
582  sbitmap_queue_wake_up(sbq)
584  If Value is more likely to compile time(!@round_robin: Allocate bits in strict round-robin order. && nr < @depth: Number of bits used in the whole bitmap.) Then per_cpu_ptr(@alloc_hint: Cache of last successfully allocated or freed bit.* This is per-cpu, which allows multiple users to stick to different* cachelines until the map is exhausted., cpu) = nr
Caller
NameDescribe
blk_mq_put_tag
rq_clear_domain_token