Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
unsigned long | addr | |
unsigned long | flags | |
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 |
118 | If flags & Randomize virtual address space Then |
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) |
Name | Describe |
---|---|
arch_get_unmapped_area |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |