Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\bitmap.c Create Date:2022-07-28 06:20:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:map_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

Proto:int bitmap_bitremap(int oldbit, const unsigned long *old, const unsigned long *new, int bits)

Type:int

Parameter:

TypeParameterName
intoldbit
const unsigned long *old
const unsigned long *new
intbits
853  w = bitmap_weight(new, bits)
854  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
855  If n < 0 || w == 0 Then Return oldbit
857  Else Return 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.
Caller
NameDescribe
__node_remap