Function report |
Source Code:mm\mmap.c |
Create Date:2022-07-28 14:48:30 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
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:
| Type | Parameter | Name |
|---|---|---|
| unsigned long | addr | |
| unsigned long | len | |
| unsigned long | prot | |
| unsigned long | flags | |
| unsigned long | fd | |
| unsigned long | pgoff |
| 1562 | If Not (flags & don't use a file ) Then |
| 1563 | audit_mmap_fd(fd, flags) |
| 1567 | If is_file_hugepages(file) Then len = @a is a power of 2 value (len, huge_page_size(hstate_file(file))) |
| 1570 | If Value for the false possibility is greater at compile time(flags & create a huge page mapping && !is_file_hugepages(file)) Then Go to out_fput |
| 1572 | Else if flags & create a huge page mapping Then |
| 1573 | struct user_struct * user = NULL |
| 1576 | hs = hstate_sizelog((flags >> Huge page size encoding when MAP_HUGETLB is specified, and a huge page* size other than the default is desired) & MAP_HUGE_MASK) |
| 1580 | len = @a is a power of 2 value (len, huge_page_size(hs)) |
| 1595 | flags &= ~(mark it as an executable | ETXTBSY ) |
| 1598 | out_fput : |
| 1601 | Return retval |
| Name | Describe |
|---|---|
| SYSCALL_DEFINE6 | |
| SYSCALL_DEFINE1 | |
| SYSCALL_DEFINE6 | |
| SYSCALL_DEFINE1 |
| 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 |