Home
last modified time | relevance | path

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

/arch/um/kernel/skas/
Dmmu.c53 struct mm_context *from_mm = NULL; in init_new_context() local
64 from_mm = &current->mm->context; in init_new_context()
67 if (from_mm) in init_new_context()
69 from_mm->id.u.pid); in init_new_context()
78 ret = init_new_ldt(to_mm, from_mm); in init_new_context()
/arch/x86/um/
Dldt.c300 long init_new_ldt(struct mm_context *new_mm, struct mm_context *from_mm) in init_new_ldt() argument
311 if (!from_mm) { in init_new_ldt()
337 mutex_lock(&from_mm->arch.ldt.lock); in init_new_ldt()
338 if (from_mm->arch.ldt.entry_count <= LDT_DIRECT_ENTRIES) in init_new_ldt()
339 memcpy(new_mm->arch.ldt.u.entries, from_mm->arch.ldt.u.entries, in init_new_ldt()
342 i = from_mm->arch.ldt.entry_count / LDT_ENTRIES_PER_PAGE; in init_new_ldt()
352 from_mm->arch.ldt.u.pages[i], PAGE_SIZE); in init_new_ldt()
355 new_mm->arch.ldt.entry_count = from_mm->arch.ldt.entry_count; in init_new_ldt()
356 mutex_unlock(&from_mm->arch.ldt.lock); in init_new_ldt()
/arch/um/include/asm/
Dmmu.h21 extern long init_new_ldt(struct mm_context *to_mm, struct mm_context *from_mm);
Dprocessor-generic.h61 static inline void mm_copy_segments(struct mm_struct *from_mm, in mm_copy_segments() argument