函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\bitmap.h Create Date:2022-07-27 06:38:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bitmap_weight

函数原型:static __always_inline int bitmap_weight(const unsigned long *src, unsigned int nbits)

返回类型:int

参数:

类型参数名称
const unsigned long *src
unsigned intnbits
390  如果The static inlines below do not handle constant nbits==0 correctly,* so make such users (should any ever turn up) call the out-of-line* versions.(nbits)则返回:hweight_long( * src & BITMAP_LAST_WORD_MASK(nbits))
392  返回:__bitmap_weight(src, nbits)
调用者
名称描述
bitmap_remapmap_remap - Apply map defined by a pair of bitmaps to another bitmap*@dst: remapped result*@src: subset to be remapped*@old: defines domain of map*@new: defines range of map*@nbits: number of bits in each of these bitmaps* Let @old and @new define a
bitmap_bitremapmap_bitremap - Apply map defined by a pair of bitmaps to a single bit*@oldbit: bit position to be mapped*@old: defines domain of map*@new: defines range of map*@bits: number of bits in each of these bitmaps* Let @old and @new define a mapping of bit
memweight 计算内存区域中的位总数
__sbitmap_weight
rdtgroup_cbm_to_sizedtgroup_cbm_to_size - Translate CBM to size in bytes*@r: RDT resource to which @d belongs.*@d: RDT domain instance.*@cbm: bitmask for which the size should be computed.* The bitmask provided associated with the RDT domain instance @d will be
__init_one_rdt_domainInitialize cache resources per RDT domain* Set the RDT domain up to start off with all usable allocations. That is,* all shareable and unused bits. All-zero CBM is invalid.
rcu_cpu_startingMark the specified CPU as being online so that subsequent grace periods* (both expedited and normal) will wait on it. Note that this means that* incoming CPUs are not allowed to use RCU read-side critical sections* until this function is called
cma_used_get
cpumask_weightpumask_weight - Count of bits in *srcp*@srcp: the cpumask to count bits (< nr_cpu_ids) in.
__nodes_weight