Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\mmap.c Create Date:2022-07-28 14:50:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:vm_lock_anon_vma

Proto:static void vm_lock_anon_vma(struct mm_struct *mm, struct anon_vma *anon_vma)

Type:void

Parameter:

TypeParameterName
struct mm_struct *mm
struct anon_vma *anon_vma
3450  If Not st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then
3465  If __test_and_set_bit - Set a bit and return its old value*@nr: Bit to set*@addr: Address to count from* This operation is non-atomic. If two instances of this operation race, one* can appear to succeed but actually fail. Then BUG()
Caller
NameDescribe
mm_take_all_locksThis operation locks against the VM for all pte/vma/mm related* operations that could ever happen on a certain mm. This includes* vmtruncate, try_to_unmap, and all page faults.* The caller must take the mmap_sem in write mode before calling