函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__khugepaged_enter

函数原型:int __khugepaged_enter(struct mm_struct *mm)

返回类型:int

参数:

类型参数名称
struct mm_struct *mm
436  mm_slot等于alloc_mm_slot()
437  如果非mm_slot则返回:负ENOMEM
441  VM_BUG_ON_MM(khugepaged_test_exit(mm), mm)
442  如果此条件成立可能性小(为编译器优化)(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).)则
443  free_mm_slot(mm_slot)
444  返回:0
447  加自旋锁
448  insert_to_mm_slots_hash(mm, mm_slot)
453  wakeup等于链表为空
454  添加链表项
455  自旋锁解锁
457  mmgrab() - Pin a &struct mm_struct
458  如果wakeupwake_up_interruptible( & khugepaged_wait)
461  返回:0