函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This function can't run concurrently against mmu_notifier_register* because mm->mm_users > 0 during mmu_notifier_register and exit_mmap* runs with mm_users == 0

函数原型:static void mn_hlist_release(struct mmu_notifier_mm *mmn_mm, struct mm_struct *mm)

返回类型:void

参数:

类型参数名称
struct mmu_notifier_mm *mmn_mm
struct mm_struct *mm
301  id等于srcu_read_lock - register a new reader for an SRCU-protected structure
302  hlist_for_each_entry_rcu - iterate over rcu list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the hlist_node within the struct.(mn, & all mmu notifiers registered in this mm are queued in this list , hlist)
309  如果releaserelease(mn, mm)
312  加自旋锁
313 此条件成立可能性小(为编译器优化)(!hlist_empty( & all mmu notifiers registered in this mm are queued in this list ))循环
314  mn等于hlist_entry(first, structmmu_notifier, hlist)
322  hlist_del_init_rcu - deletes entry from hash list with re-initialization*@n: the element to delete from the hash list.* Note: list_unhashed() on the node return true after this. It is* useful for RCU based read lockfree traversal if the writer side
324  自旋锁解锁
325  注销过期读锁
336  synchronize_srcu - wait for prior SRCU read-side critical-section completion*@ssp: srcu_struct with which to synchronize
调用者
名称描述
__mmu_notifier_release