Home
last modified time | relevance | path

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

/arch/um/kernel/skas/
Dmmu.c52 struct mm_context *from_mm = NULL; in init_new_context() local
65 from_mm = &current->mm->context; in init_new_context()
77 if (from_mm) in init_new_context()
79 from_mm->id.u.pid); in init_new_context()
88 ret = init_new_ldt(to_mm, from_mm); in init_new_context()
/arch/x86/um/
Dldt.c389 long init_new_ldt(struct mm_context *new_mm, struct mm_context *from_mm) in init_new_ldt() argument
402 if (!from_mm) { in init_new_ldt()
446 from_mm->id.u.mm_fd } } ); in init_new_ldt()
460 mutex_lock(&from_mm->arch.ldt.lock); in init_new_ldt()
461 if (from_mm->arch.ldt.entry_count <= LDT_DIRECT_ENTRIES) in init_new_ldt()
462 memcpy(new_mm->arch.ldt.u.entries, from_mm->arch.ldt.u.entries, in init_new_ldt()
465 i = from_mm->arch.ldt.entry_count / LDT_ENTRIES_PER_PAGE; in init_new_ldt()
475 from_mm->arch.ldt.u.pages[i], PAGE_SIZE); in init_new_ldt()
478 new_mm->arch.ldt.entry_count = from_mm->arch.ldt.entry_count; in init_new_ldt()
479 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.h63 static inline void mm_copy_segments(struct mm_struct *from_mm, in mm_copy_segments() argument