函数逻辑报告 |
Source Code:mm\nommu.c |
Create Date:2022-07-27 16:03:22 |
Last Modify:2020-03-17 21:26:27 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:we've determined that we can make the mapping, now translate what we* now know into VMA flags
函数原型:static unsigned long determine_vm_flags(struct file *file, unsigned long prot, unsigned long flags, unsigned long capabilities)
返回类型:unsigned long
参数:
类型 | 参数 | 名称 |
---|---|---|
struct file * | file | |
unsigned long | prot | |
unsigned long | flags | |
unsigned long | capabilities |
953 | vm_flags等于Combine the mmap "prot" argument into "vm_flags" used internally.按位或Combine the mmap "flags" argument into "vm_flags" used internally. |
956 | 如果非capabilities按位与NOMMU_MAP_DIRECT的值则 |
958 | vm_flags或等于limits for mprotect() etc 按位或VM_MAYWRITE按位或VM_MAYEXEC |
959 | 如果file且非prot按位与page can be written 的值则vm_flags或等于VM_MAYSHARE |
961 | 否则 |
965 | vm_flags或等于VM_MAYSHARE按位或capabilities按位与NOMMU_VMFLAGS |
966 | 如果flags按位与Share changes 则vm_flags或等于VM_SHARED |
974 | 如果flags按位与Changes are private 且ptrace则vm_flags与等于VM_MAYSHARE的反 |
977 | 返回:vm_flags |
名称 | 描述 |
---|---|
do_mmap | handle mapping creation for uClinux |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |