Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\mmu_context.h Create Date:2022-07-28 05:55:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static inline int init_new_context(struct task_struct *tsk, struct mm_struct *mm)

Type:int

Parameter:

TypeParameterName
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  Return 0
Caller
NameDescribe
mm_init