函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vm_mmap_pgoff

函数原型:unsigned long vm_mmap_pgoff(struct file *file, unsigned long addr, unsigned long len, unsigned long prot, unsigned long flag, unsigned long pgoff)

返回类型:unsigned long

参数:

类型参数名称
struct file *file
unsigned longaddr
unsigned longlen
unsigned longprot
unsigned longflag
unsigned longpgoff
498  mm等于mm
500  LIST_HEAD(uf)
502  ret等于security_mmap_file(file, prot, flag)
503  如果非ret
504  如果lock for writing则返回:负EINTR
506  ret等于do_mmap_pgoff(file, addr, len, prot, flag, pgoff, & populate, & uf)
508  lease a write lock
509  userfaultfd_unmap_complete(mm, & uf)
510  如果populatemm_populate(ret, populate)
513  返回:ret
调用者
名称描述
vm_mmap
ksys_mmap_pgoff
ksys_mmap_pgoff