Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:find_last_bit

Proto:unsigned long find_last_bit(const unsigned long *addr, unsigned long size)

Type:unsigned long

Parameter:

TypeParameterName
const unsigned long *addr
unsigned longsize
133  If size Then
134  val = BITMAP_LAST_WORD_MASK(size)
135  idx = (size - 1) / BITS_PER_LONG
137  Do
138  val &= addr[idx]
142  val = ~0ul
143  When idx-- cycle
145  Return size
Caller
NameDescribe
test_find_last_bit
pcpu_block_update_hint_freepcpu_block_update_hint_free - updates the block hints on the free path*@chunk: chunk of interest*@bit_off: chunk offset*@bits: size of request* Updates metadata for the allocation path. This avoids a blind block
chunk_map_statsPrints out chunk state. Fragmentation is considered between* the beginning of the chunk to the last allocation.* All statistics are in bytes unless stated otherwise.