函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mfill_atomic_pte

函数原型: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)

返回类型:ssize_t

参数:

类型参数名称
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  如果非Flags, see mm.h. 按位与VM_SHARED的值则
426  如果非zeropageerr等于mcopy_atomic_pte(dst_mm, dst_pmd, dst_vma, dst_addr, src_addr, page)
429  否则err等于mfill_zeropage_pte(dst_mm, dst_pmd, dst_vma, dst_addr)
432  否则
433  如果非zeropageerr等于shmem_mcopy_atomic_pte(dst_mm, dst_pmd, dst_vma, dst_addr, src_addr, page)
437  否则err等于shmem_mfill_zeropage_pte(dst_mm, dst_pmd, dst_vma, dst_addr)
442  返回:err
调用者
名称描述
__mcopy_atomic