Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static void mn_hlist_release(struct mmu_notifier_mm *mmn_mm, struct mm_struct *mm)

Type:void

Parameter:

TypeParameterName
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  If release Then release(mn, mm)
312  spin_lock( & serialize the list modifications and hlist_unhashed )
313  When Value for the false possibility is greater at compile time(!hlist_empty( & all mmu notifiers registered in this mm are queued in this list )) cycle
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  spin_unlock( & serialize the list modifications and hlist_unhashed )
325  srcu_read_unlock - unregister a old reader from an SRCU-protected structure.*@ssp: srcu_struct in which to unregister the old reader.*@idx: return value from corresponding srcu_read_lock().* Exit an SRCU read-side critical section.
336  synchronize_srcu - wait for prior SRCU read-side critical-section completion*@ssp: srcu_struct with which to synchronize
Caller
NameDescribe
__mmu_notifier_release