Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\percpu-internal.h Create Date:2022-07-28 14:25:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static inline int pcpu_chunk_nr_blocks(struct pcpu_chunk *chunk)

Type:int

Parameter:

TypeParameterName
struct pcpu_chunk *chunk
82  Return # of pages served by this chunk * PAGE_SIZE / The 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.
Caller
NameDescribe
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