函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\sched\mm.h Create Date:2022-07-27 06:42:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:mmgrab() - Pin a &struct mm_struct

函数原型:static inline void mmgrab(struct mm_struct *mm)

返回类型:void

参数:

类型参数名称
struct mm_struct *mm
36  atomic_inc( & *@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.)
调用者
名称描述
cpu_initpu_init() initializes state that is per-CPU. Some data is already* initialized (naturally) in the bootstrap process, such as the GDT* and IDT. We reload them nevertheless, this function acts as a* 'CPU state barrier', nothing should get across.
exit_mmTurn us into a lazy TLB process if we* aren't already..
context_switch进程切换
sched_init初始化调度器数据结构并创建运行队列
futex_get_mm
mark_oom_victimmark_oom_victim - mark the given task as OOM victim*@tsk: task to mark* Has to be called with oom_lock held and never after* oom has been disabled already.* under task_lock or operate on the current).
__oom_kill_process
use_mmse_mm* Makes the calling kernel thread take on the specified* mm context.* (Note: this routine is intended to be called only* from a kernel thread context)
__mmu_notifier_registerSame as mmu_notifier_register but here the caller must hold the mmap_sem in* write mode. A NULL mn signals the notifier is being registered for itree* mode.
__mmu_interval_notifier_insert
__ksm_enter
__khugepaged_enter
dup_userfaultfd
SYSCALL_DEFINE1
io_sq_offload_start