Lines Matching refs:mm_struct

16 extern struct mm_struct *mm_alloc(void);
19 * mmgrab() - Pin a &struct mm_struct.
20 * @mm: The &struct mm_struct to pin.
33 * of &mm_struct.mm_count vs &mm_struct.mm_users.
35 static inline void mmgrab(struct mm_struct *mm)
45 extern void __mmdrop(struct mm_struct *mm);
47 static inline void mmdrop(struct mm_struct *mm)
65 struct mm_struct *mm = container_of(rhp, struct mm_struct, delayed_drop);
74 static inline void mmdrop_sched(struct mm_struct *mm)
81 static inline void mmdrop_sched(struct mm_struct *mm)
88 static inline void mmgrab_lazy_tlb(struct mm_struct *mm)
94 static inline void mmdrop_lazy_tlb(struct mm_struct *mm)
107 static inline void mmdrop_lazy_tlb_sched(struct mm_struct *mm)
116 * mmget() - Pin the address space associated with a &struct mm_struct.
119 * Make sure that the address space of the given &struct mm_struct doesn't
129 * of &mm_struct.mm_count vs &mm_struct.mm_users.
131 static inline void mmget(struct mm_struct *mm)
136 static inline bool mmget_not_zero(struct mm_struct *mm)
142 extern void mmput(struct mm_struct *);
147 void mmput_async(struct mm_struct *);
151 extern struct mm_struct *get_task_mm(struct task_struct *task);
157 extern struct mm_struct *mm_access(struct task_struct *task, unsigned int mode);
158 /* Remove the current tasks stale references to the old mm_struct on exit() */
159 extern void exit_mm_release(struct task_struct *, struct mm_struct *);
160 /* Remove the current tasks stale references to the old mm_struct on exec() */
161 extern void exec_mm_release(struct task_struct *, struct mm_struct *);
164 extern void mm_update_next_owner(struct mm_struct *mm);
166 static inline void mm_update_next_owner(struct mm_struct *mm)
180 extern void arch_pick_mmap_layout(struct mm_struct *mm,
190 unsigned long mm_get_unmapped_area(struct mm_struct *mm, struct file *filp,
203 unsigned long mm_get_unmapped_area_vmflags(struct mm_struct *mm,
220 static inline void arch_pick_mmap_layout(struct mm_struct *mm,
548 static inline void membarrier_mm_sync_core_before_usermode(struct mm_struct *mm)
558 extern void membarrier_exec_mmap(struct mm_struct *mm);
560 extern void membarrier_update_current_mm(struct mm_struct *next_mm);
564 static inline void membarrier_arch_switch_mm(struct mm_struct *prev,
565 struct mm_struct *next,
570 static inline void membarrier_exec_mmap(struct mm_struct *mm)
573 static inline void membarrier_mm_sync_core_before_usermode(struct mm_struct *mm)
576 static inline void membarrier_update_current_mm(struct mm_struct *next_mm)