函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:apply_to_p4d_range

函数原型:static int apply_to_p4d_range(struct mm_struct *mm, pgd_t *pgd, unsigned long addr, unsigned long end, pte_fn_t fn, void *data, bool create)

返回类型:int

参数:

类型参数名称
struct mm_struct *mm
pgd_t *pgd
unsigned longaddr
unsigned longend
pte_fn_tfn
void *data
boolcreate
2123  err等于0
2125  如果create
2126  p4d等于The following ifdef needed to get the 5level-fixup.h header to work.* Remove it when 5level-fixup.h has been removed.
2127  如果非p4d则返回:负ENOMEM
2129  否则
2130  p4d等于p4d_offset(pgd, addr)
2132  循环
2133  next等于p4d_addr_end(addr, end)
2134  如果create或非p4d_none_or_clear_bad(p4d)则
2137  如果err退出
2140 p4d自加, addr等于next, addr不等于end循环
2141  返回:err
调用者
名称描述
__apply_to_page_range