函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\percpu-vm.c Create Date:2022-07-27 15:51:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:static void pcpu_free_pages(struct pcpu_chunk *chunk, struct page **pages, int page_start, int page_end)

返回类型:void

参数:

类型参数名称
struct pcpu_chunk *chunk
struct page **pages
intpage_start
intpage_end
59  遍历可用CPU(cpu)
60 i小于page_end循环
61  page等于pages[pcpu_page_idx(cpu, i)]
63  如果page__free_page(page)
调用者
名称描述
pcpu_populate_chunkpcpu_populate_chunk - populate and map an area of a pcpu_chunk*@chunk: chunk of interest*@page_start: the start page*@page_end: the end page*@gfp: allocation flags passed to the underlying memory allocator* For each cpu, populate and map pages
pcpu_depopulate_chunkpcpu_depopulate_chunk - depopulate and unmap an area of a pcpu_chunk*@chunk: chunk to depopulate*@page_start: the start page*@page_end: the end page* For each cpu, depopulate and unmap pages [@page_start,@page_end)* from @chunk.* CONTEXT: