Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mmu_interval_notifier_insert - Insert an interval notifier*@mni: Interval notifier to register*@start: Starting virtual address to monitor*@length: Length of the range to monitor*@mm : mm_struct to attach to* This function subscribes the interval notifier

Proto:int mmu_interval_notifier_insert(struct mmu_interval_notifier *mni, struct mm_struct *mm, unsigned long start, unsigned long length, const struct mmu_interval_notifier_ops *ops)

Type:int

Parameter:

TypeParameterName
struct mmu_interval_notifier *mni
struct mm_struct *mm
unsigned longstart
unsigned longlength
const struct mmu_interval_notifier_ops *ops
936  might_lock( & mmap_sem)
938  mmn_mm = smp_load_acquire( & mmu_notifier_mm)
939  If Not mmn_mm || Not has_itree Then
940  ret = mmu_notifier_register - Register a notifier on a mm*@mn: The notifier to attach*@mm: The mm to attach the notifier to* Must not hold mmap_sem nor any other VM related lock when calling* this registration function
941  If ret Then Return ret
943  mmn_mm = mmu_notifier_mm
945  Return __mmu_interval_notifier_insert(mni, mm, mmn_mm, start, length, ops)