函数逻辑报告 |
Source Code:mm\mmu_notifier.c |
Create Date:2022-07-27 17:10:41 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: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.
函数原型:int __mmu_notifier_register(struct mmu_notifier *mn, struct mm_struct *mm)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct mmu_notifier * | mn | |
| struct mm_struct * | mm |
| 569 | struct mmu_notifier_mm * mmu_notifier_mm = NULL |
| 572 | lockdep_assert_held_write( & mmap_sem) |
| 582 | 如果非mmu_notifier_mm则 |
| 588 | mmu_notifier_mm等于分配内存并置零 |
| 590 | 如果非mmu_notifier_mm则返回:负ENOMEM |
| 595 | invalidate_seq等于2 |
| 596 | itree = |
| 597 | init_waitqueue_head( & wq) |
| 598 | INIT_HLIST_HEAD( & deferred_list) |
| 602 | 如果此条件成立可能性小(为编译器优化)(ret)则转到:out_clean |
| 623 | 如果mn则 |
| 632 | 否则has_itree = true |
| 637 | 返回:0 |
| 639 | out_clean : |
| 640 | 释放内存 |
| 641 | 返回:ret |
| 名称 | 描述 |
|---|---|
| mmu_notifier_register | 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 |
| mmu_notifier_get_locked | 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 |
| mmu_interval_notifier_insert_locked |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |