函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vmap_page_range

函数原型:static int vmap_page_range(unsigned long start, unsigned long end, pgprot_t prot, struct page **pages)

返回类型:int

参数:

类型参数名称
unsigned longstart
unsigned longend
pgprot_tprot
struct page **pages
246  ret等于Set up page tables in kva (addr, end). The ptes shall have prot "prot", and* will have pfns corresponding to the "pages" array.* Ie. pte at addr+N*PAGE_SIZE shall point to pfn corresponding to pages[N]
247  flush_cache_vmap(start, end)
248  返回:ret
调用者
名称描述
vm_map_ramvm_map_ram - map pages linearly into kernel virtual address (vmalloc space)*@pages: an array of pointers to the pages to be mapped*@count: number of pages*@node: prefer to allocate data structures on this node*@prot: memory protection to use
map_vm_area