函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型: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)

返回类型:int

参数:

类型参数名称
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  如果非mmn_mm或非has_itree
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  如果ret则返回:ret
943  mmn_mm等于mmu_notifier_mm
945  返回:__mmu_interval_notifier_insert(mni, mm, mmn_mm, start, length, ops)