Function report |
Source Code:mm\mmu_notifier.c |
Create Date:2022-07-28 15:37:16 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:int __mmu_notifier_register(struct mmu_notifier *mn, struct mm_struct *mm)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| 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 | If Not mmu_notifier_mm Then |
| 588 | mmu_notifier_mm = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
| 590 | If Not mmu_notifier_mm Then Return -ENOMEM |
| 595 | invalidate_seq = 2 |
| 596 | itree = |
| 597 | init_waitqueue_head( & wq) |
| 598 | INIT_HLIST_HEAD( & deferred_list) |
| 602 | If Value for the false possibility is greater at compile time(ret) Then Go to out_clean |
| 620 | If mmu_notifier_mm Then smp_store_release( & mmu_notifier_mm, mmu_notifier_mm) |
| 623 | If mn Then |
| 627 | users = 1 |
| 631 | spin_unlock( & lock) |
| 632 | Else has_itree = true |
| 637 | Return 0 |
| 639 | out_clean : |
| 640 | kfree(mmu_notifier_mm) |
| 641 | Return ret |
| Name | Describe |
|---|---|
| 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 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |