函数逻辑报告 |
Source Code:mm\mmap.c |
Create Date:2022-07-27 16:16:36 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: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 long | addr | |
| unsigned long | len | |
| unsigned long | prot | |
| unsigned long | flags | |
| unsigned long | fd | |
| unsigned long | pgoff |
| 1562 | 如果非flags按位与don't use a file 的值则 |
| 1563 | audit_mmap_fd(fd, flags) |
| 1567 | 如果is_file_hugepages(file)则len等于@a is a power of 2 value (len, huge_page_size(hstate_file(file))) |
| 1570 | 如果此条件成立可能性小(为编译器优化)(flags & create a huge page mapping && !is_file_hugepages(file))则转到:out_fput |
| 1572 | 否则如果flags按位与create a huge page mapping 则 |
| 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 | 返回:retval |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |