• Home
  • Raw
  • Download

Lines Matching refs:mm

61 static inline void init_new_context_ldt(struct mm_struct *mm)  in init_new_context_ldt()  argument
63 mm->context.ldt = NULL; in init_new_context_ldt()
64 init_rwsem(&mm->context.ldt_usr_sem); in init_new_context_ldt()
66 int ldt_dup_context(struct mm_struct *oldmm, struct mm_struct *mm);
67 void destroy_context_ldt(struct mm_struct *mm);
68 void ldt_arch_exit_mmap(struct mm_struct *mm);
70 static inline void init_new_context_ldt(struct mm_struct *mm) { } in init_new_context_ldt() argument
72 struct mm_struct *mm) in ldt_dup_context() argument
76 static inline void destroy_context_ldt(struct mm_struct *mm) { } in destroy_context_ldt() argument
77 static inline void ldt_arch_exit_mmap(struct mm_struct *mm) { } in ldt_arch_exit_mmap() argument
81 extern void load_mm_ldt(struct mm_struct *mm);
84 static inline void load_mm_ldt(struct mm_struct *mm) in load_mm_ldt() argument
94 extern void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk);
101 struct mm_struct *mm) in init_new_context() argument
103 mutex_init(&mm->context.lock); in init_new_context()
105 mm->context.ctx_id = atomic64_inc_return(&last_mm_ctx_id); in init_new_context()
106 atomic64_set(&mm->context.tlb_gen, 0); in init_new_context()
111 mm->context.pkey_allocation_map = 0x1; in init_new_context()
113 mm->context.execute_only_pkey = -1; in init_new_context()
116 init_new_context_ldt(mm); in init_new_context()
119 static inline void destroy_context(struct mm_struct *mm) in destroy_context() argument
121 destroy_context_ldt(mm); in destroy_context()
138 #define deactivate_mm(tsk, mm) \ argument
143 #define deactivate_mm(tsk, mm) \ argument
151 struct mm_struct *mm) in arch_dup_pkeys() argument
158 mm->context.pkey_allocation_map = oldmm->context.pkey_allocation_map; in arch_dup_pkeys()
159 mm->context.execute_only_pkey = oldmm->context.execute_only_pkey; in arch_dup_pkeys()
163 static inline int arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) in arch_dup_mmap() argument
165 arch_dup_pkeys(oldmm, mm); in arch_dup_mmap()
166 paravirt_arch_dup_mmap(oldmm, mm); in arch_dup_mmap()
167 return ldt_dup_context(oldmm, mm); in arch_dup_mmap()
170 static inline void arch_exit_mmap(struct mm_struct *mm) in arch_exit_mmap() argument
172 paravirt_arch_exit_mmap(mm); in arch_exit_mmap()
173 ldt_arch_exit_mmap(mm); in arch_exit_mmap()
177 static inline bool is_64bit_mm(struct mm_struct *mm) in is_64bit_mm() argument
180 !(mm->context.ia32_compat == TIF_IA32); in is_64bit_mm()
183 static inline bool is_64bit_mm(struct mm_struct *mm) in is_64bit_mm() argument
189 static inline void arch_unmap(struct mm_struct *mm, unsigned long start, in arch_unmap() argument