Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:The mmap_sem cannot be released by the caller until* mm_drop_all_locks() returns.

Proto:void mm_drop_all_locks(struct mm_struct *mm)

Type:void

Parameter:

TypeParameterName
struct mm_struct *mm
3611  BUG_ON(rylock for reading -- returns 1 if successful, 0 if contention)
3612  BUG_ON(!mutex_is_locked( & mm_all_locks_mutex))
3614  When vma cycle
3615  If Serialized by page_table_lock Then list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(avc, & Serialized by mmap_sem &* page_table_lock , same_vma)
3617  vm_unlock_anon_vma(anon_vma)
3618  If File we map to (can be NULL). && f_mapping Then vm_unlock_mapping(f_mapping)
3622  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
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
__mmu_notifier_registerSame as mmu_notifier_register but here the caller must hold the mmap_sem in* write mode. A NULL mn signals the notifier is being registered for itree* mode.