函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vm_lock_anon_vma

函数原型:static void vm_lock_anon_vma(struct mm_struct *mm, struct anon_vma *anon_vma)

返回类型:void

参数:

类型参数名称
struct mm_struct *mm
struct anon_vma *anon_vma
3450  如果非st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from
3465  如果__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.BUG()
调用者
名称描述
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