Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\percpu.c Create Date:2022-07-28 14:25:45
Last Modify:2022-05-23 13:52:24 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pcpu_next_hint - determine which hint to use*@block: block of interest*@alloc_bits: size of allocation* This determines if we should scan based on the scan_hint or first_free.* In general, we want to scan from first_free to fulfill allocations by

Proto:static int pcpu_next_hint(struct pcpu_block_md *block, int alloc_bits)

Type:int

Parameter:

TypeParameterName
struct pcpu_block_md *block
intalloc_bits
345  If scan hint for block && lock relative startingposition of the contig hint > lock relative startingposition of the scan hint && alloc_bits > scan hint for block Then Return lock relative startingposition of the scan hint + scan hint for block
350  Return lock position of first free
Caller
NameDescribe
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_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