函数逻辑报告 |
Source Code:mm\mmap.c |
Create Date:2022-07-27 16:18:13 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Emulation of deprecated remap_file_pages() syscall.
函数原型:SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size, unsigned long, prot, unsigned long, pgoff, unsigned long, flags)
返回类型:
参数:无
2875 | populate等于0 |
2879 | pr_warn_once("%s (%d) uses deprecated remap_file_pages() syscall. See Documentation/vm/remap_file_pages.rst.\n", comm, pid) |
2891 | 如果pgoff加size右移PAGE_SHIFT determines the page size 位的值小于pgoff则返回:ret |
2894 | 如果lock for writing则返回:负EINTR |
2899 | 如果非vma或非Flags, see mm.h. 按位与VM_SHARED的值则转到:out |
2902 | 如果start小于Our start address within vm_mm. 则转到:out |
2913 | 如果File we map to (can be NULL). 不等于File we map to (can be NULL). 则转到:out |
2916 | 如果Flags, see mm.h. 不等于Flags, see mm.h. 则转到:out |
2927 | prot或等于如果Flags, see mm.h. 按位与currently active flags 则page can be read 否则0 |
2928 | prot或等于如果Flags, see mm.h. 按位与VM_WRITE则page can be written 否则0 |
2929 | prot或等于如果Flags, see mm.h. 按位与VM_EXEC则page can be executed 否则0 |
2931 | flags与等于do not block on IO |
2933 | 如果Flags, see mm.h. 按位与VM_LOCKED则 |
2935 | flags或等于pages are locked |
2938 | 以Our start address within vm_mm. 大于等于start加size循环 |
2944 | vma_adjust_trans_huge(tmp, start, start + size, 0) |
2953 | ret等于do_mmap_pgoff(File we map to (can be NULL). , start, size, prot, flags, pgoff, & populate, NULL) |
2956 | out : |
2957 | lease a write lock |
2958 | 如果populate则mm_populate(ret, populate) |
2960 | 如果非IS_ERR_VALUE(ret)则ret等于0 |
2962 | 返回:ret |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |