函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vm_lock_mapping

函数原型:static void vm_lock_mapping(struct mm_struct *mm, struct address_space *mapping)

返回类型:void

参数:

类型参数名称
struct mm_struct *mm
struct address_space *mapping
3473  如果非st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from
3483  如果st_and_set_bit - Set a bit and return its old value*@nr: Bit to set*@addr: Address to count from* This is an atomic fully-ordered operation (implied full memory barrier).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