Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\bitmap.h Create Date:2022-07-28 05:34:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bitmap_equal

Proto:static inline int bitmap_equal(const unsigned long *src1, const unsigned long *src2, unsigned int nbits)

Type:int

Parameter:

TypeParameterName
const unsigned long *src1
const unsigned long *src2
unsigned intnbits
326  If 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) Then Return Not ((src1 ^ src2) & BITMAP_LAST_WORD_MASK(nbits))
328  If __builtin_constant_p(nbits & BITMAP_MEM_MASK) && IS_ALIGNED(nbits, BITMAP_MEM_ALIGNMENT) Then Return Not memcmp(src1, src2, nbits / 8)
331  Return __bitmap_equal(src1, src2, nbits)
Caller
NameDescribe
__check_eq_bitmap
test_mem_optimisations
frontswap_register_opsRegister operations for frontswap
section_deactivate
cpumask_equalpumask_equal - *src1p == *src2p*@src1p: the first input*@src2p: the second input
__nodes_equal