Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\percpu-vm.c Create Date:2022-07-28 14:27:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pcpu_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:

Proto:static void pcpu_depopulate_chunk(struct pcpu_chunk *chunk, int page_start, int page_end)

Type:void

Parameter:

TypeParameterName
struct pcpu_chunk *chunk
intpage_start
intpage_end
318  pages = pcpu_get_pages - get temp pages array* Returns pointer to array of pointers to struct page which can be indexed* with pcpu_page_idx(). Note that there is only one array and accesses* should be serialized by pcpu_alloc_mutex.* RETURNS:
319  BUG_ON(!pages)
322  pcpu_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
324  pcpu_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
328  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