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_set

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

Type:void

Parameter:

TypeParameterName
unsigned long *map
unsigned intstart
intlen
284  p = map + BIT_WORD(start)
285  size = start + len
286  bits_to_set = BITS_PER_LONG - start % BITS_PER_LONG
287  mask_to_set = BITMAP_FIRST_WORD_MASK(start)
289  When len - bits_to_set >= 0 cycle
290  p |= mask_to_set
291  len -= bits_to_set
292  bits_to_set = BITS_PER_LONG
293  mask_to_set = ~0UL
294  p++
296  If len Then
297  mask_to_set &= BITMAP_LAST_WORD_MASK(size)
298  p |= mask_to_set
Caller
NameDescribe
test_mem_optimisations