函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sbitmap_queue_clear

函数原型:void sbitmap_queue_clear(struct sbitmap_queue *sbq, unsigned int nr, unsigned int cpu)

返回类型:void

参数:

类型参数名称
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  如果此条件成立可能性大(为编译器优化)(!@round_robin: Allocate bits in strict round-robin order. && nr < @depth: Number of bits used in the whole bitmap.)则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
调用者
名称描述
blk_mq_put_tag
rq_clear_domain_token