函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\nommu.c Create Date:2022-07-27 16:03:22
Last Modify:2020-03-17 21:26:27 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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 longprot
unsigned longflags
unsigned longcapabilities
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 ptracevm_flags与等于VM_MAYSHARE的反
977  返回:vm_flags
调用者
名称描述
do_mmaphandle mapping creation for uClinux