函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:zap_p4d_range

函数原型:static inline unsigned long zap_p4d_range(struct mmu_gather *tlb, struct vm_area_struct *vma, pgd_t *pgd, unsigned long addr, unsigned long end, struct zap_details *details)

返回类型:unsigned long

参数:

类型参数名称
struct mmu_gather *tlb
struct vm_area_struct *vma
pgd_t *pgd
unsigned longaddr
unsigned longend
struct zap_details *details
1229  p4d等于p4d_offset(pgd, addr)
1230  循环
1231  next等于p4d_addr_end(addr, end)
1232  如果p4d_none_or_clear_bad(p4d)则继续下一循环
1234  next等于zap_pud_range(tlb, vma, p4d, addr, next, details)
1235 p4d自加, addr等于next, addr不等于end循环
1237  返回:addr
调用者
名称描述
unmap_page_range