函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\percpu-internal.h Create Date:2022-07-27 15:49:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:pcpu_chunk_nr_blocks - converts nr_pages to # of md_blocks*@chunk: chunk of interest* This conversion is from the number of physical pages that the chunk* serves to the number of bitmap blocks used.

函数原型:static inline int pcpu_chunk_nr_blocks(struct pcpu_chunk *chunk)

返回类型:int

参数:

类型参数名称
struct pcpu_chunk *chunk
82  返回: # of pages served by this chunk PAGE_SIZEThe PCPU_BITMAP_BLOCK_SIZE must be the same size as PAGE_SIZE as the* updating of hints is used to manage the nr_empty_pop_pages in both* the chunk and globally.
调用者
名称描述
pcpu_next_md_free_regionpcpu_next_md_free_region - finds the next hint free area*@chunk: chunk of interest*@bit_off: chunk offset*@bits: size of free area* Helper function for pcpu_for_each_md_free_region
pcpu_next_fit_regionpcpu_next_fit_region - finds fit areas for a given allocation request*@chunk: chunk of interest*@alloc_bits: size of allocation*@align: alignment of area (max PAGE_SIZE)*@bit_off: chunk offset*@bits: size of free area* Finds the next free region that is
pcpu_init_md_blocks
pcpu_alloc_first_chunkpcpu_alloc_first_chunk - creates chunks that serve the first chunk*@tmp_addr: the start of the region served*@map_size: size of the region served* This is responsible for creating the chunks that serve the first chunk
pcpu_alloc_chunk