Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static int pcpu_map_pages(struct pcpu_chunk *chunk, struct page **pages, int page_start, int page_end)

Type:int

Parameter:

TypeParameterName
struct pcpu_chunk *chunk
struct page **pages
intpage_start
intpage_end
219  for_each_possible_cpu(cpu)
220  err = __pcpu_map_pages(pcpu_chunk_addr(chunk, cpu, page_start), & pages[pcpu_page_idx(cpu, page_start)], page_end - page_start)
223  If err < 0 Then Go to err
226  When i < page_end cycle set the pointer to a chunk in a page struct
230  Return 0
231  err :
232  for_each_possible_cpu(tcpu)
233  If tcpu == cpu Then Break
235  __pcpu_unmap_pages(pcpu_chunk_addr(chunk, tcpu, page_start), page_end - page_start)
238  pcpu_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
239  Return err