Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__ksm_enter

Proto:int __ksm_enter(struct mm_struct *mm)

Type:int

Parameter:

TypeParameterName
struct mm_struct *mm
2488  mm_slot = alloc_mm_slot()
2489  If Not mm_slot Then Return -ENOMEM
2493  needs_wakeup = list_empty - tests whether a list is empty*@head: the list to test.
2495  spin_lock( & ksm_mmlist_lock)
2496  insert_to_mm_slots_hash(mm, mm_slot)
2507  If ksm_run & KSM_RUN_UNMERGE Then list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
2509  Else list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
2511  spin_unlock( & ksm_mmlist_lock)
2513  Atomically set a bit in memory
2514  mmgrab() - Pin a &struct mm_struct
2516  If needs_wakeup Then wake_up_interruptible( & ksm_thread_wait)
2519  Return 0
Caller
NameDescribe
ksm_madvise