Home
last modified time | relevance | path

Searched refs:old_mm (Results 1 – 4 of 4) sorted by relevance

/arch/x86/kernel/
Dldt.c359 int ldt_dup_context(struct mm_struct *old_mm, struct mm_struct *mm) in ldt_dup_context() argument
364 if (!old_mm) in ldt_dup_context()
367 mutex_lock(&old_mm->context.lock); in ldt_dup_context()
368 if (!old_mm->context.ldt) in ldt_dup_context()
371 new_ldt = alloc_ldt_struct(old_mm->context.ldt->nr_entries); in ldt_dup_context()
377 memcpy(new_ldt->entries, old_mm->context.ldt->entries, in ldt_dup_context()
390 mutex_unlock(&old_mm->context.lock); in ldt_dup_context()
/arch/sparc/include/asm/
Dmmu_context_32.h26 void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm,
Dmmu_context_64.h81 static inline void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, struct task_struct *ts… in switch_mm() argument
/arch/sparc/mm/
Dsrmmu.c434 static inline void alloc_context(struct mm_struct *old_mm, struct mm_struct *mm) in alloc_context() argument
447 if (ctxp->ctx_mm == old_mm) in alloc_context()
492 void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, in switch_mm() argument
499 alloc_context(old_mm, mm); in switch_mm()