函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vmap_pud_range

函数原型:static int vmap_pud_range(p4d_t *p4d, unsigned long addr, unsigned long end, pgprot_t prot, struct page **pages, int *nr)

返回类型:int

参数:

类型参数名称
p4d_t *p4d
unsigned longaddr
unsigned longend
pgprot_tprot
struct page **pages
int *nr
186  pud等于pud_alloc( & init_mm, p4d, addr)
187  如果非pud则返回:负ENOMEM
189  循环
190  next等于pud_addr_end(addr, end)
191  如果vmap_pmd_range(pud, addr, next, prot, pages, nr)则返回:负ENOMEM
193 pud自加, addr等于next, addr不等于end循环
194  返回:0
调用者
名称描述
vmap_p4d_range