函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pcpu_chunk_addr

函数原型:static unsigned long pcpu_chunk_addr(struct pcpu_chunk *chunk, unsigned int cpu, int page_idx)

返回类型:unsigned long

参数:

类型参数名称
struct pcpu_chunk *chunk
unsigned intcpu
intpage_idx
269  返回: base address of this chunk pcpu_unit_page_offset(cpu, page_idx)
调用者
名称描述
pcpu_allocpcpu_alloc - the percpu allocator*@size: size of area to allocate in bytes*@align: alignment of area (max PAGE_SIZE)*@reserved: allocate from the reserved chunk if available*@gfp: allocation flags* Allocate percpu area of @size bytes aligned at @align
pcpu_chunk_pagemm/percpu-vm.c - vmalloc area based chunk allocation* Copyright (C) 2010 SUSE Linux Products GmbH* Copyright (C) 2010 Tejun Heo * Chunks are mapped into vmalloc areas and populated page by page.* This is the default chunk allocator.
pcpu_pre_unmap_flushpcpu_pre_unmap_flush - flush cache prior to unmapping*@chunk: chunk the regions to be flushed belongs to*@page_start: page index of the first page to be flushed*@page_end: page index of the last page to be flushed + 1* Pages in [@page_start,@page_end) of
pcpu_unmap_pagespcpu_unmap_pages - unmap pages out of a pcpu_chunk*@chunk: chunk of interest*@pages: pages array which can be used to pass information to free*@page_start: page index of the first page to unmap*@page_end: page index of the last page to unmap + 1
pcpu_post_unmap_tlb_flushpcpu_post_unmap_tlb_flush - flush TLB after unmapping*@chunk: pcpu_chunk the regions to be flushed belong to*@page_start: page index of the first page to be flushed*@page_end: page index of the last page to be flushed + 1
pcpu_map_pagespcpu_map_pages - map pages into a pcpu_chunk*@chunk: chunk of interest*@pages: pages array containing pages to be mapped*@page_start: page index of the first page to map*@page_end: page index of the last page to map + 1
pcpu_post_map_flushpcpu_post_map_flush - flush cache after mapping*@chunk: pcpu_chunk the regions to be flushed belong to*@page_start: page index of the first page to be flushed*@page_end: page index of the last page to be flushed + 1