Searched refs:old_mm (Results 1 – 7 of 7) sorted by relevance
/linux-6.6.21/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.6.21/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.6.21/fs/ |
D | exec.c | 982 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-6.6.21/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.6.21/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.6.21/kernel/trace/ |
D | trace_events_user.c | 822 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()
|