Home
last modified time | relevance | path

Searched refs:old_mm (Results 1 – 7 of 7) sorted by relevance

/Linux-v6.6/include/linux/
Duser_events.h31 struct user_event_mm *old_mm);
38 struct user_event_mm *old_mm; in user_events_fork() local
43 old_mm = current->user_event_mm; in user_events_fork()
46 t->user_event_mm = old_mm; in user_events_fork()
47 refcount_inc(&old_mm->tasks); in user_events_fork()
51 user_event_mm_dup(t, old_mm); in user_events_fork()
/Linux-v6.6/arch/x86/kernel/
Dldt.c451 int ldt_dup_context(struct mm_struct *old_mm, struct mm_struct *mm) in ldt_dup_context() argument
456 if (!old_mm) in ldt_dup_context()
459 mutex_lock(&old_mm->context.lock); in ldt_dup_context()
460 if (!old_mm->context.ldt) in ldt_dup_context()
463 new_ldt = alloc_ldt_struct(old_mm->context.ldt->nr_entries); in ldt_dup_context()
469 memcpy(new_ldt->entries, old_mm->context.ldt->entries, in ldt_dup_context()
482 mutex_unlock(&old_mm->context.lock); in ldt_dup_context()
/Linux-v6.6/fs/
Dexec.c982 struct mm_struct *old_mm, *active_mm; in exec_mmap() local
987 old_mm = current->mm; in exec_mmap()
988 exec_mm_release(tsk, old_mm); in exec_mmap()
989 if (old_mm) in exec_mmap()
990 sync_mm_rss(old_mm); in exec_mmap()
996 if (old_mm) { in exec_mmap()
1002 ret = mmap_read_lock_killable(old_mm); in exec_mmap()
1032 if (old_mm) { in exec_mmap()
1033 mmap_read_unlock(old_mm); in exec_mmap()
1034 BUG_ON(active_mm != old_mm); in exec_mmap()
[all …]
/Linux-v6.6/arch/sparc/include/asm/
Dmmu_context_32.h24 void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm,
Dmmu_context_64.h80 static inline void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, struct task_struct *ts… in switch_mm() argument
/Linux-v6.6/arch/sparc/mm/
Dsrmmu.c414 static inline void alloc_context(struct mm_struct *old_mm, struct mm_struct *mm) in alloc_context() argument
427 if (ctxp->ctx_mm == old_mm) in alloc_context()
472 void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, in switch_mm() argument
479 alloc_context(old_mm, mm); in switch_mm()
/Linux-v6.6/kernel/trace/
Dtrace_events_user.c822 void user_event_mm_dup(struct task_struct *t, struct user_event_mm *old_mm) in user_event_mm_dup() argument
832 list_for_each_entry_rcu(enabler, &old_mm->enablers, mm_enablers_link) { in user_event_mm_dup()