/linux-4.1.27/include/linux/ |
H A D | khugepaged.h | 26 static inline int khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) khugepaged_fork() argument 28 if (test_bit(MMF_VM_HUGEPAGE, &oldmm->flags)) khugepaged_fork() 51 static inline int khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) khugepaged_fork() argument
|
H A D | ksm.h | 25 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) ksm_fork() argument 27 if (test_bit(MMF_VM_MERGEABLE, &oldmm->flags)) ksm_fork() 69 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) ksm_fork() argument
|
H A D | uprobes.h | 115 extern void uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm); 169 uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm) uprobe_dup_mmap() argument
|
/linux-4.1.27/include/asm-generic/ |
H A D | mm_hooks.h | 9 static inline void arch_dup_mmap(struct mm_struct *oldmm, arch_dup_mmap() argument
|
/linux-4.1.27/kernel/ |
H A D | fork.c | 390 static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm) dup_mmap() argument 398 down_write(&oldmm->mmap_sem); dup_mmap() 399 flush_cache_dup_mm(oldmm); dup_mmap() 400 uprobe_dup_mmap(oldmm, mm); dup_mmap() 407 RCU_INIT_POINTER(mm->exe_file, get_mm_exe_file(oldmm)); dup_mmap() 409 mm->total_vm = oldmm->total_vm; dup_mmap() 410 mm->shared_vm = oldmm->shared_vm; dup_mmap() 411 mm->exec_vm = oldmm->exec_vm; dup_mmap() 412 mm->stack_vm = oldmm->stack_vm; dup_mmap() 417 retval = ksm_fork(mm, oldmm); dup_mmap() 420 retval = khugepaged_fork(mm, oldmm); dup_mmap() 425 for (mpnt = oldmm->mmap; mpnt; mpnt = mpnt->vm_next) { dup_mmap() 437 if (security_vm_enough_memory_mm(oldmm, len)) /* sic */ dup_mmap() 494 retval = copy_page_range(mm, oldmm, mpnt); dup_mmap() 503 arch_dup_mmap(oldmm, mm); dup_mmap() 507 flush_tlb_mm(oldmm); dup_mmap() 508 up_write(&oldmm->mmap_sem); dup_mmap() 534 static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm) dup_mmap() argument 536 down_write(&oldmm->mmap_sem); dup_mmap() 537 RCU_INIT_POINTER(mm->exe_file, get_mm_exe_file(oldmm)); dup_mmap() 538 up_write(&oldmm->mmap_sem); dup_mmap() 906 struct mm_struct *mm, *oldmm = current->mm; dup_mm() local 913 memcpy(mm, oldmm, sizeof(*mm)); dup_mm() 918 err = dup_mmap(mm, oldmm); dup_mm() 941 struct mm_struct *mm, *oldmm; copy_mm() local 958 oldmm = current->mm; copy_mm() 959 if (!oldmm) copy_mm() 966 atomic_inc(&oldmm->mm_users); copy_mm() 967 mm = oldmm; copy_mm()
|
/linux-4.1.27/arch/um/include/asm/ |
H A D | mmu_context.h | 16 static inline void arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) arch_dup_mmap() argument
|
/linux-4.1.27/drivers/oprofile/ |
H A D | buffer_sync.c | 494 struct mm_struct *oldmm; sync_buffer() local 535 oldmm = mm; sync_buffer() 536 release_mm(oldmm); sync_buffer() 538 if (mm != oldmm) sync_buffer()
|
/linux-4.1.27/arch/unicore32/include/asm/ |
H A D | mmu_context.h | 84 static inline void arch_dup_mmap(struct mm_struct *oldmm, arch_dup_mmap() argument
|
/linux-4.1.27/arch/s390/include/asm/ |
H A D | mmu_context.h | 119 static inline void arch_dup_mmap(struct mm_struct *oldmm, arch_dup_mmap() argument
|
/linux-4.1.27/arch/x86/include/asm/ |
H A D | mmu_context.h | 210 static inline void arch_dup_mmap(struct mm_struct *oldmm, arch_dup_mmap() argument 213 paravirt_arch_dup_mmap(oldmm, mm); arch_dup_mmap()
|
H A D | paravirt.h | 333 static inline void paravirt_arch_dup_mmap(struct mm_struct *oldmm, paravirt_arch_dup_mmap() argument 336 PVOP_VCALL2(pv_mmu_ops.dup_mmap, oldmm, mm); paravirt_arch_dup_mmap() 985 static inline void paravirt_arch_dup_mmap(struct mm_struct *oldmm, paravirt_arch_dup_mmap() argument
|
H A D | paravirt_types.h | 241 void (*dup_mmap)(struct mm_struct *oldmm,
|
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/ |
H A D | linux-tcpip.c | 49 mm_segment_t oldmm = get_fs(); libcfs_sock_ioctl() local 70 set_fs(oldmm); libcfs_sock_ioctl()
|
/linux-4.1.27/kernel/events/ |
H A D | uprobes.c | 1245 void uprobe_dup_mmap(struct mm_struct *oldmm, struct mm_struct *newmm) uprobe_dup_mmap() argument 1249 if (test_bit(MMF_HAS_UPROBES, &oldmm->flags)) { uprobe_dup_mmap()
|
/linux-4.1.27/kernel/sched/ |
H A D | core.c | 2303 struct mm_struct *mm, *oldmm; context_switch() local 2308 oldmm = prev->active_mm; context_switch() 2317 next->active_mm = oldmm; context_switch() 2318 atomic_inc(&oldmm->mm_count); context_switch() 2319 enter_lazy_tlb(oldmm, next); context_switch() 2321 switch_mm(oldmm, mm, next); context_switch() 2325 rq->prev_mm = oldmm; context_switch()
|
/linux-4.1.27/arch/x86/xen/ |
H A D | mmu.c | 992 static void xen_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) xen_dup_mmap() argument
|