Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:DOC: bitmap introduction* bitmaps provide an array of bits, implemented using an an* array of unsigned longs

Proto:int __bitmap_equal(const unsigned long *bitmap1, const unsigned long *bitmap2, unsigned int bits)

Type:int

Parameter:

TypeParameterName
const unsigned long *bitmap1
const unsigned long *bitmap2
unsigned intbits
49  lim = bits / BITS_PER_LONG
50  When k < lim cycle If bitmap1[k] != bitmap2[k] Then
52  Return 0
54  If bits % BITS_PER_LONG Then If (bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits) Then
56  Return 0
58  Return 1
Caller
NameDescribe
__test_bitmap_parselist
test_mem_optimisations