函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pcpu_chunk_addr_search - determine chunk containing specified address*@addr: address for which the chunk needs to be determined.* This is an internal function that handles all but static allocations.

函数原型:static struct pcpu_chunk *pcpu_chunk_addr_search(void *addr)

返回类型:struct pcpu_chunk

参数:

类型参数名称
void *addr
1553  如果pcpu_addr_in_chunk - check if the address is served from this chunk*@chunk: chunk of interest*@addr: percpu address* RETURNS:* True if the address is served from this chunk.则返回:The first chunk which always exists. Note that unlike other* chunks, this one can be allocated and mapped in several different* ways and thus often doesn't live in the vmalloc area.
1557  如果pcpu_addr_in_chunk - check if the address is served from this chunk*@chunk: chunk of interest*@addr: percpu address* RETURNS:* True if the address is served from this chunk.则返回:Optional reserved chunk. This chunk reserves part of the first* chunk and serves it for reserved allocations. When the reserved* region doesn't exist, the following variable is NULL.
1567  addr加等于pcpu_unit_offsets[These macros fold the SMP functionality into a single CPU system()]
1568  返回:btain pointer to a chunk from a page struct
调用者
名称描述
free_percpu释放内存