Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:This releases the mm_count pin automatically and frees the mm* structure if it was the last user of it. It serializes against* running mmu notifiers with SRCU and against mmu_notifier_unregister* with the unregister lock + SRCU

Proto:void mmu_notifier_unregister(struct mmu_notifier *mn, struct mm_struct *mm)

Type:void

Parameter:

TypeParameterName
struct mmu_notifier *mn
struct mm_struct *mm
761  BUG_ON(atomic_read( & *@mm_count: The number of references to &struct mm_struct * (@mm_users count as 1). * Use mmgrab()/mmdrop() to modify. When this drops to 0, the * &struct mm_struct is freed.) <= 0)
763  If Not hlist_unhashed( & hlist) Then
770  id = srcu_read_lock - register a new reader for an SRCU-protected structure
775  If release Then release(mn, mm)
777  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.
779  spin_lock( & lock)
784  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
785  spin_unlock( & lock)
792  synchronize_srcu - wait for prior SRCU read-side critical-section completion
794  BUG_ON(atomic_read( & *@mm_count: The number of references to &struct mm_struct * (@mm_users count as 1). * Use mmgrab()/mmdrop() to modify. When this drops to 0, the * &struct mm_struct is freed.) <= 0)
796  mmdrop(mm)