Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\sys_x86_64.c Create Date:2022-07-28 07:42:10
Last Modify:2022-05-18 16:45:21 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len,unsigned long, prot, unsigned long, flags,unsigned long, fd, unsigned long, off)long error;error = -EINVAL;if (off & ~PAGE_MASK)goto out;error = ksys_mmap_pgoff(addr, len, prot, flags, fd, off

Proto:static void find_start_end(unsigned long addr, unsigned long flags, unsigned long *begin, unsigned long *end)

Type:void

Parameter:

TypeParameterName
unsigned longaddr
unsigned longflags
unsigned long *begin
unsigned long *end
108  If Not in_32bit_syscall() && flags & ly give out 32bit addresses Then
116  begin = 0x40000000
117  end = 0x80000000
119  begin = randomize_page( * begin, 0x02000000)
121  Return
124  begin = get_mmap_base(1)
125  If in_32bit_syscall() Then end = task_size_32bit()
127  Else end = task_size_64bit(addr > DEFAULT_MAP_WINDOW)
Caller
NameDescribe
arch_get_unmapped_area