Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memory.c Create Date:2022-07-28 14:40:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:copy_p4d_range

Proto: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)

Type:int

Parameter:

TypeParameterName
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  If Not dst_p4d Then Return -ENOMEM
943  src_p4d = p4d_offset(src_pgd, addr)
944  Do
945  next = p4d_addr_end(addr, end)
946  If p4d_none_or_clear_bad(src_p4d) Then Continue
948  If copy_pud_range(dst_mm, src_mm, dst_p4d, src_p4d, vma, addr, next) Then Return -ENOMEM
951  When dst_p4d++, src_p4d++, addr = next , addr != end cycle
952  Return 0
Caller
NameDescribe
copy_page_range