函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:static int pcpu_next_hint(struct pcpu_block_md *block, int alloc_bits)

返回类型:int

参数:

类型参数名称
struct pcpu_block_md *block
intalloc_bits
345  如果scan hint for block lock relative startingposition of the contig hint 大于lock relative startingposition of the scan hint alloc_bits大于scan hint for block 则返回:lock relative startingposition of the scan hint scan hint for block
350  返回:lock position of first free
调用者
名称描述
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