函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pcpu_init_md_blocks

函数原型:static void pcpu_init_md_blocks(struct pcpu_chunk *chunk)

返回类型:void

参数:

类型参数名称
struct pcpu_chunk *chunk
1287  pcpu_init_md_block( & chunk_md, pcpu_chunk_map_bits - helper to convert nr_pages to size of bitmap*@chunk: chunk of interest* This conversion is from the number of physical pages that the chunk* serves to the number of bits in the bitmap.)
1289 md_block不等于 metadata blocks 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.循环pcpu_init_md_block(md_block, PCPU_BITMAP_BLOCK_BITS)
调用者
名称描述
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