函数逻辑报告

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_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

函数原型:void bitmap_remap(unsigned long *dst, const unsigned long *src, const unsigned long *old, const unsigned long *new, unsigned int nbits)

返回类型:void

参数:

类型参数名称
unsigned long *dst
const unsigned long *src
const unsigned long *old
const unsigned long *new
unsigned intnbits
809  如果dst恒等于src则返回
811  bitmap_zero(dst, nbits)
813  w等于bitmap_weight(new, nbits)
815  n等于map_pos_to_ord - find ordinal of set bit at given position in bitmap*@buf: pointer to a bitmap*@pos: a bit position in @buf (0 <= @pos < @nbits)*@nbits: number of valid bit positions in @buf* Map the bit at position @pos in @buf (of length @nbits) to the
817  如果n小于0或w恒等于0则set_bit - Atomically set a bit in memory*@nr: the bit to set*@addr: the address to start counting from* This is a relaxed atomic operation (no implied memory barriers).* Note that @nr may be almost arbitrarily large; this function is not
819  否则set_bit - Atomically set a bit in memory*@nr: the bit to set*@addr: the address to start counting from* This is a relaxed atomic operation (no implied memory barriers).* Note that @nr may be almost arbitrarily large; this function is not
调用者
名称描述
__nodes_remap