函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\mmu_context.h Create Date:2022-07-27 06:54:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Init a new mm. Used on mm copies, like at fork()* and on mm's that are brand-new, like at execve().

函数原型:static inline int init_new_context(struct task_struct *tsk, struct mm_struct *mm)

返回类型:int

参数:

类型参数名称
struct task_struct *tsk
struct mm_struct *mm
191  mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & lock)
193  ctx_id uniquely identifies this mm_struct. A ctx_id will never* be reused, and zero is not a valid ctx_id.等于atomic64_inc_return( & last_mm_ctx_id)
194  atomic64_set( & Any code that needs to do any sort of TLB flushing for this* mm will first make its changes to the page tables, then* increment tlb_gen, then flush. This lets the low-level* flushing code keep track of what needs flushing.* This is not used on Xen PV., 0)
204  init_new_context_ldt(mm)
205  返回:0
调用者
名称描述
mm_init设置内核内存分配器