Searched refs:from_mm (Results 1 – 3 of 3) sorted by relevance
19 struct mm_context *from_mm = NULL; in init_new_context() local30 from_mm = ¤t->mm->context; in init_new_context()33 if (from_mm) in init_new_context()35 from_mm->id.u.pid); in init_new_context()44 ret = init_new_ldt(to_mm, from_mm); in init_new_context()
300 long init_new_ldt(struct mm_context *new_mm, struct mm_context *from_mm) in init_new_ldt() argument311 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()
21 extern long init_new_ldt(struct mm_context *to_mm, struct mm_context *from_mm);