函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pcpu_is_populated - determines if the region is populated*@chunk: chunk of interest*@bit_off: chunk offset*@bits: size of area*@next_off: return value for the next offset to start searching* For atomic allocations, check if the backing pages are populated

函数原型:static bool pcpu_is_populated(struct pcpu_chunk *chunk, int bit_off, int bits, int *next_off)

返回类型:bool

参数:

类型参数名称
struct pcpu_chunk *chunk
intbit_off
intbits
int *next_off
1046  page_start等于PFN_DOWN(bit_off * PCPU_MIN_ALLOC_SIZE)
1047  page_end等于PFN_UP((bit_off + bits) * PCPU_MIN_ALLOC_SIZE)
1049  rs等于page_start
1050  pcpu_next_unpop( populated bitmap , & rs, & re, page_end)
1051  如果rs大于等于page_end则返回:true
1054  next_off等于rePAGE_SIZEPCPU_MIN_ALLOC_SIZE
1055  返回:false
调用者
名称描述
pcpu_find_block_fitpcpu_find_block_fit - finds the block index to start searching*@chunk: chunk of interest*@alloc_bits: size of request in allocation units*@align: alignment of area (max PAGE_SIZE bytes)*@pop_only: use populated regions only* Given a chunk and an