Lines Matching defs:from_mm
389 long init_new_ldt(struct mm_context *new_mm, struct mm_context *from_mm)
402 if (!from_mm) {
439 * We have a valid from_mm, so we now have to copy the LDT of
440 * from_mm to new_mm, because using proc_mm an new mm with
446 from_mm->id.u.mm_fd } } );
460 mutex_lock(&from_mm->ldt.lock);
461 if (from_mm->ldt.entry_count <= LDT_DIRECT_ENTRIES)
462 memcpy(new_mm->ldt.u.entries, from_mm->ldt.u.entries,
465 i = from_mm->ldt.entry_count / LDT_ENTRIES_PER_PAGE;
475 from_mm->ldt.u.pages[i], PAGE_SIZE);
478 new_mm->ldt.entry_count = from_mm->ldt.entry_count;
479 mutex_unlock(&from_mm->ldt.lock);