Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__khugepaged_enter

Proto:int __khugepaged_enter(struct mm_struct *mm)

Type:int

Parameter:

TypeParameterName
struct mm_struct *mm
436  mm_slot = alloc_mm_slot()
437  If Not mm_slot Then Return -ENOMEM
441  VM_BUG_ON_MM(khugepaged_test_exit(mm), mm)
442  If Value for the false possibility is greater at compile time(st_and_set_bit - Set a bit and return its old value*@nr: Bit to set*@addr: Address to count from* This is an atomic fully-ordered operation (implied full memory barrier).) Then
443  free_mm_slot(mm_slot)
444  Return 0
447  spin_lock( & khugepaged_mm_lock)
448  insert_to_mm_slots_hash(mm, mm_slot)
453  wakeup = list_empty - tests whether a list is empty*@head: the list to test.
454  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.
455  spin_unlock( & khugepaged_mm_lock)
457  mmgrab() - Pin a &struct mm_struct
458  If wakeup Then wake_up_interruptible( & khugepaged_wait)
461  Return 0