Home
last modified time | relevance | path

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

/linux-6.1.9/arch/um/kernel/skas/
Dmmu.c19 struct mm_context *from_mm = NULL; in init_new_context() local
30 from_mm = &current->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()
/linux-6.1.9/arch/x86/um/
Dldt.c300 long init_new_ldt(struct mm_context *new_mm, struct mm_context *from_mm) in init_new_ldt() argument
311 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()
/linux-6.1.9/arch/um/include/asm/
Dmmu.h21 extern long init_new_ldt(struct mm_context *to_mm, struct mm_context *from_mm);