Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:struct mmu_notifier *mmu_notifier_get_locked(const struct mmu_notifier_ops *ops, struct mm_struct *mm)

Type:struct mmu_notifier

Parameter:

TypeParameterName
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  If mmu_notifier_mm Then
722  mn = find_get_mmu_notifier(mm, >alloc_notifier(), or returns an already existing notifier on the)
723  If mn Then Return mn
727  mn = alloc_notifier(mm)
728  If IS_ERR(mn) Then Return 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  If ret Then Go to out_free
734  Return mn
735  out_free :
736  free_notifier(mn)
737  Return ERR_PTR(ret)
Caller
NameDescribe
mmu_notifier_get