Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mfill_atomic_pte

Proto:static __always_inline ssize_t mfill_atomic_pte(struct mm_struct *dst_mm, pmd_t *dst_pmd, struct vm_area_struct *dst_vma, unsigned long dst_addr, unsigned long src_addr, struct page **page, bool zeropage)

Type:ssize_t

Parameter:

TypeParameterName
struct mm_struct *dst_mm
pmd_t *dst_pmd
struct vm_area_struct *dst_vma
unsigned longdst_addr
unsigned longsrc_addr
struct page **page
boolzeropage
425  If Not (Flags, see mm.h. & VM_SHARED) Then
426  If Not zeropage Then err = mcopy_atomic_pte(dst_mm, dst_pmd, dst_vma, dst_addr, src_addr, page)
429  Else err = mfill_zeropage_pte(dst_mm, dst_pmd, dst_vma, dst_addr)
432  Else
433  If Not zeropage Then err = shmem_mcopy_atomic_pte(dst_mm, dst_pmd, dst_vma, dst_addr, src_addr, page)
437  Else err = shmem_mfill_zeropage_pte(dst_mm, dst_pmd, dst_vma, dst_addr)
442  Return err
Caller
NameDescribe
__mcopy_atomic