函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\find_bit.c Create Date:2022-07-27 07:21:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:查找最后的CPU标志位

函数原型:unsigned long find_last_bit(const unsigned long *addr, unsigned long size)

返回类型:unsigned long

参数:

类型参数名称
const unsigned long *addr
unsigned longsize
133  如果size
134  val等于BITMAP_LAST_WORD_MASK(size)
135  idx等于size减1的差除BITS_PER_LONG
137  循环
138  val与等于addr[idx]
142  val等于0ul的反
143 idx自减循环
145  返回:size
调用者
名称描述
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.
setup_nr_cpu_idsAn arch may set nr_cpu_ids earlier if needed, so this would be redundant
pcpu_block_update_scanpcpu_block_update_scan - update a block given a free area from a scan*@chunk: chunk of interest*@bit_off: chunk offset*@bits: size of free area* Finding the final allocation spot first goes through pcpu_find_block_fit()* to find a block that can hold the