函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mmu_notifier_get_locked - Return the single struct mmu_notifier for* the mm & ops*@ops: The operations struct being subscribe with*@mm : The mm to attach notifiers too* This function either allocates a new mmu_notifier via* list

函数原型:struct mmu_notifier *mmu_notifier_get_locked(const struct mmu_notifier_ops *ops, struct mm_struct *mm)

返回类型:struct mmu_notifier

参数:

类型参数名称
const struct mmu_notifier_ops *ops>alloc_notifier(), or returns an already existing notifier on the
struct mm_struct *mm
719  lockdep_assert_held_write( & mmap_sem)
721  如果mmu_notifier_mm
722  mn等于find_get_mmu_notifier(mm, >alloc_notifier(), or returns an already existing notifier on the)
723  如果mn则返回:mn
727  mn等于alloc_notifier(mm)
728  如果是错误则返回:mn
730  ops等于>alloc_notifier(), or returns an already existing notifier on the
731  ret等于Same 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.
732  如果ret则转到:out_free
734  返回:mn
735  out_free :
736  free_notifier(mn)
737  返回:错误号
调用者
名称描述
mmu_notifier_get