函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:remap_pud_range

函数原型:static inline int remap_pud_range(struct mm_struct *mm, p4d_t *p4d, unsigned long addr, unsigned long end, unsigned long pfn, pgprot_t prot)

返回类型:int

参数:

类型参数名称
struct mm_struct *mm
p4d_t *p4d
unsigned longaddr
unsigned longend
unsigned longpfn
pgprot_tprot
1866  pfn减等于addr右移PAGE_SHIFT determines the page size
1867  pud等于pud_alloc(mm, p4d, addr)
1868  如果非pud则返回:负ENOMEM
1870  循环
1871  next等于pud_addr_end(addr, end)
1872  err等于remap_pmd_range(mm, pud, addr, next, pfn + (addr >> PAGE_SHIFT determines the page size ), prot)
1874  如果err则返回:err
1876 pud自加, addr等于next, addr不等于end循环
1877  返回:0
调用者
名称描述
remap_p4d_range