函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:copy_p4d_range

函数原型:static inline int copy_p4d_range(struct mm_struct *dst_mm, struct mm_struct *src_mm, pgd_t *dst_pgd, pgd_t *src_pgd, struct vm_area_struct *vma, unsigned long addr, unsigned long end)

返回类型:int

参数:

类型参数名称
struct mm_struct *dst_mm
struct mm_struct *src_mm
pgd_t *dst_pgd
pgd_t *src_pgd
struct vm_area_struct *vma
unsigned longaddr
unsigned longend
940  dst_p4d等于The following ifdef needed to get the 5level-fixup.h header to work.* Remove it when 5level-fixup.h has been removed.
941  如果非dst_p4d则返回:负ENOMEM
943  src_p4d等于p4d_offset(src_pgd, addr)
944  循环
945  next等于p4d_addr_end(addr, end)
946  如果p4d_none_or_clear_bad(src_p4d)则继续下一循环
948  如果copy_pud_range(dst_mm, src_mm, dst_p4d, src_p4d, vma, addr, next)则返回:负ENOMEM
951 dst_p4d自加, src_p4d自加, addr等于next, addr不等于end循环
952  返回:0
调用者
名称描述
copy_page_range