Searched refs:old_mm (Results 1 – 7 of 7) sorted by relevance
/linux-6.12.1/include/linux/ |
D | user_events.h | 31 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-6.12.1/arch/x86/kernel/ |
D | ldt.c | 451 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-6.12.1/fs/ |
D | exec.c | 961 struct mm_struct *old_mm, *active_mm; in exec_mmap() local 966 old_mm = current->mm; in exec_mmap() 967 exec_mm_release(tsk, old_mm); in exec_mmap() 973 if (old_mm) { in exec_mmap() 979 ret = mmap_read_lock_killable(old_mm); in exec_mmap() 1009 if (old_mm) { in exec_mmap() 1010 mmap_read_unlock(old_mm); in exec_mmap() 1011 BUG_ON(active_mm != old_mm); in exec_mmap() 1012 setmax_mm_hiwater_rss(&tsk->signal->maxrss, old_mm); in exec_mmap() 1013 mm_update_next_owner(old_mm); in exec_mmap() [all …]
|
/linux-6.12.1/arch/sparc/include/asm/ |
D | mmu_context_32.h | 24 void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm,
|
D | mmu_context_64.h | 80 static inline void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, struct task_struct *ts… in switch_mm() argument
|
/linux-6.12.1/arch/sparc/mm/ |
D | srmmu.c | 414 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-6.12.1/kernel/trace/ |
D | trace_events_user.c | 841 void user_event_mm_dup(struct task_struct *t, struct user_event_mm *old_mm) in user_event_mm_dup() argument 851 list_for_each_entry_rcu(enabler, &old_mm->enablers, mm_enablers_link) { in user_event_mm_dup()
|