Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__bitmap_clear

Proto:void __bitmap_clear(unsigned long *map, unsigned int start, int len)

Type:void

Parameter:

TypeParameterName
unsigned long *map
unsigned intstart
intlen
305  p = map + BIT_WORD(start)
306  size = start + len
307  bits_to_clear = BITS_PER_LONG - start % BITS_PER_LONG
308  mask_to_clear = BITMAP_FIRST_WORD_MASK(start)
310  When len - bits_to_clear >= 0 cycle
311  p &= ~mask_to_clear
312  len -= bits_to_clear
313  bits_to_clear = BITS_PER_LONG
314  mask_to_clear = ~0UL
315  p++
317  If len Then
318  mask_to_clear &= BITMAP_LAST_WORD_MASK(size)
319  p &= ~mask_to_clear
Caller
NameDescribe
test_mem_optimisations