函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\nommu.c Create Date:2022-07-27 16:03:50
Last Modify:2020-03-17 21:26:27 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:ksys_mmap_pgoff

函数原型:unsigned long ksys_mmap_pgoff(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long pgoff)

返回类型:unsigned long

参数:

类型参数名称
unsigned longaddr
unsigned longlen
unsigned longprot
unsigned longflags
unsigned longfd
unsigned longpgoff
1329  struct file * file = NULL
1330  retval等于负EBADF
1332  audit_mmap_fd(fd, flags)
1333  如果非flags按位与don't use a file 的值则
1334  file等于fget(fd)
1335  如果非file则转到:out
1339  flags与等于mark it as an executable 按位或ETXTBSY 的值的反
1341  retval等于vm_mmap_pgoff(file, addr, len, prot, flags, pgoff)
1343  如果filefput(file)
1345  out :
1346  返回:retval
调用者
名称描述
SYSCALL_DEFINE6
SYSCALL_DEFINE1