函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mmap.c Create Date:2022-07-27 16:16:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:We account for memory if it's a private writeable mapping,* not hugepages and VM_NORESERVE wasn't set.

函数原型:static inline int accountable_mapping(struct file *file, vm_flags_t vm_flags)

返回类型:int

参数:

类型参数名称
struct file *file
vm_flags_tvm_flags
1683  如果fileis_file_hugepages(file)则返回:0
1686  返回:vm_flags按位与should the VM suppress accounting 按位或VM_SHARED按位或VM_WRITE的值的值恒等于VM_WRITE
调用者
名称描述
mmap_region