函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:map_ord_to_pos - find position of n-th set bit in bitmap*@buf: pointer to bitmap*@ord: ordinal bit position (n-th set bit, n >= 0)*@nbits: number of valid bit positions in @buf* Map the ordinal offset of bit @ord in @buf to its position in @buf.

函数原型:unsigned int bitmap_ord_to_pos(const unsigned long *buf, unsigned int ord, unsigned int nbits)

返回类型:unsigned int

参数:

类型参数名称
const unsigned long *buf
unsigned intord
unsigned intnbits
763 pos小于nbitsord循环ord自减
768  返回:pos
调用者
名称描述
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
node_randomReturn the bit number of a random bit set in the nodemask.* (returns NUMA_NO_NODE if nodemask is empty)