函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\percpu.c Create Date:2022-07-27 15:50:25
Last Modify:2022-05-23 13:52:24 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:pcpu_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

函数原型:static void pcpu_block_update_scan(struct pcpu_chunk *chunk, int bit_off, int bits)

返回类型:void

参数:

类型参数名称
struct pcpu_chunk *chunk
intbit_off
intbits
688  s_off等于pcpu_off_to_block_off(bit_off)
689  e_off等于s_offbits
693  如果e_off大于PCPU_BITMAP_BLOCK_BITS则返回
696  s_index等于pcpu_off_to_block_index(bit_off)
697  block等于 metadata blocks s_index
700  l_bit等于查找最后的CPU标志位
701  s_off等于如果s_off恒等于l_bit则0否则l_bit加1
703  pcpu_block_update - updates a block given a free area*@block: block of interest*@start: start offset in block*@end: end offset in block* Updates a block given a known free area. The region [start, end) is
调用者
名称描述
pcpu_alloc_areapcpu_alloc_area - allocates an area from a pcpu_chunk*@chunk: chunk of interest*@alloc_bits: size of request in allocation units*@align: alignment of area (max PAGE_SIZE)*@start: bit_off to start searching* This function takes in a @start offset to begin