Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mman.h Create Date:2022-07-28 06:29:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Combine the mmap "flags" argument into "vm_flags" used internally.

Proto:static inline unsigned long calc_vm_flag_bits(unsigned long flags)

Type:unsigned long

Parameter:

TypeParameterName
unsigned longflags
131  Return Optimisation macro. It is equivalent to:* (x & bit1) ? bit2 : 0* but this version is faster.* ("bit1" and "bit2" must be single bits)(flags, stack-like segment , general info on the segment ) | Optimisation macro. It is equivalent to:* (x & bit1) ? bit2 : 0* but this version is faster.* ("bit1" and "bit2" must be single bits)(flags, ETXTBSY , ETXTBSY on write attempts.. ) | Optimisation macro. It is equivalent to:* (x & bit1) ? bit2 : 0* but this version is faster.* ("bit1" and "bit2" must be single bits)(flags, pages are locked , VM_LOCKED) | Optimisation macro. It is equivalent to:* (x & bit1) ? bit2 : 0* but this version is faster.* ("bit1" and "bit2" must be single bits)(flags, perform synchronous page faults for the mapping , Synchronous page faults )
Caller
NameDescribe
determine_vm_flagswe've determined that we can make the mapping, now translate what we* now know into VMA flags
do_mmapThe caller must hold down_write(¤t->mm->mmap_sem).