Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\nommu.c Create Date:2022-07-28 14:37:35
Last Modify:2020-03-17 21:26:27 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ksys_mmap_pgoff

Proto:unsigned long ksys_mmap_pgoff(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long pgoff)

Type:unsigned long

Parameter:

TypeParameterName
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  If Not (flags & don't use a file ) Then
1334  file = fget(fd)
1335  If Not file Then Go to out
1339  flags &= ~(mark it as an executable | ETXTBSY )
1341  retval = vm_mmap_pgoff(file, addr, len, prot, flags, pgoff)
1343  If file Then fput(file)
1345  out :
1346  Return retval
Caller
NameDescribe
SYSCALL_DEFINE6
SYSCALL_DEFINE1