函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:static bool pcpu_addr_in_chunk(struct pcpu_chunk *chunk, void *addr)

返回类型:bool

参数:

类型参数名称
struct pcpu_chunk *chunk
void *addr
210  如果非chunk则返回:false
213  start_addr等于 base address of this chunk the overlap with the previous region to have a page aligned base_addr
214  end_addr等于 base address of this chunk # of pages served by this chunk PAGE_SIZE additional area required to have the region end page aligned
217  返回:addr大于等于start_addraddr小于end_addr
调用者
名称描述
pcpu_chunk_addr_searchpcpu_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.