函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pcpu_page_idx

函数原型:static int __maybe_unused pcpu_page_idx(unsigned int cpu, int page_idx)

返回类型:int

参数:

类型参数名称
unsigned intcpu
intpage_idx
258  返回:pcpu_unit_map[cpu]乘pcpu_unit_pagespage_idx
调用者
名称描述
pcpu_free_pagespcpu_free_pages - free pages which were allocated for @chunk*@chunk: chunk pages were allocated for*@pages: array of pages to be freed, indexed by pcpu_page_idx()*@page_start: page index of the first page to be freed*@page_end: page index of the last page
pcpu_alloc_pagespcpu_alloc_pages - allocates pages for @chunk*@chunk: target chunk*@pages: array to put the allocated pages into, indexed by pcpu_page_idx()*@page_start: page index of the first page to be allocated*@page_end: page index of the last page to be allocated +
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_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