Searched refs:from_mm (Results 1 – 4 of 4) sorted by relevance
52 struct mm_context *from_mm = NULL; in init_new_context() local63 from_mm = ¤t->mm->context; in init_new_context()66 if (from_mm) in init_new_context()68 from_mm->id.u.pid); in init_new_context()77 ret = init_new_ldt(to_mm, from_mm); in init_new_context()
298 long init_new_ldt(struct mm_context *new_mm, struct mm_context *from_mm) in init_new_ldt() argument309 if (!from_mm) { in init_new_ldt()335 mutex_lock(&from_mm->arch.ldt.lock); in init_new_ldt()336 if (from_mm->arch.ldt.entry_count <= LDT_DIRECT_ENTRIES) in init_new_ldt()337 memcpy(new_mm->arch.ldt.u.entries, from_mm->arch.ldt.u.entries, in init_new_ldt()340 i = from_mm->arch.ldt.entry_count / LDT_ENTRIES_PER_PAGE; in init_new_ldt()350 from_mm->arch.ldt.u.pages[i], PAGE_SIZE); in init_new_ldt()353 new_mm->arch.ldt.entry_count = from_mm->arch.ldt.entry_count; in init_new_ldt()354 mutex_unlock(&from_mm->arch.ldt.lock); in init_new_ldt()
21 extern long init_new_ldt(struct mm_context *to_mm, struct mm_context *from_mm);
63 static inline void mm_copy_segments(struct mm_struct *from_mm, in mm_copy_segments() argument