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

/linux-4.4.14/arch/um/include/asm/
H A Dmmu.h21 extern long init_new_ldt(struct mm_context *to_mm, struct mm_context *from_mm);
H A Dprocessor-generic.h63 static inline void mm_copy_segments(struct mm_struct *from_mm, mm_copy_segments() argument
/linux-4.4.14/arch/um/kernel/skas/
H A Dmmu.c52 struct mm_context *from_mm = NULL; init_new_context() local
63 from_mm = &current->mm->context; init_new_context()
66 if (from_mm) init_new_context()
68 from_mm->id.u.pid); init_new_context()
77 ret = init_new_ldt(to_mm, from_mm); init_new_context()
/linux-4.4.14/arch/x86/um/
H A Dldt.c297 long init_new_ldt(struct mm_context *new_mm, struct mm_context *from_mm) init_new_ldt() argument
308 if (!from_mm) { init_new_ldt()
334 mutex_lock(&from_mm->arch.ldt.lock); init_new_ldt()
335 if (from_mm->arch.ldt.entry_count <= LDT_DIRECT_ENTRIES) init_new_ldt()
336 memcpy(new_mm->arch.ldt.u.entries, from_mm->arch.ldt.u.entries, init_new_ldt()
339 i = from_mm->arch.ldt.entry_count / LDT_ENTRIES_PER_PAGE; init_new_ldt()
349 from_mm->arch.ldt.u.pages[i], PAGE_SIZE); init_new_ldt()
352 new_mm->arch.ldt.entry_count = from_mm->arch.ldt.entry_count; init_new_ldt()
353 mutex_unlock(&from_mm->arch.ldt.lock); init_new_ldt()

Completed in 271 milliseconds