Home
last modified time | relevance | path

Searched refs:mm_struct (Results 1 – 25 of 551) sorted by relevance

12345678910>>...23

/linux/arch/powerpc/include/asm/
H A Dmmu_context.h18 extern int init_new_context(struct task_struct *tsk, struct mm_struct *mm);
20 extern void destroy_context(struct mm_struct *mm);
24 extern bool mm_iommu_preregistered(struct mm_struct *mm);
25 extern long mm_iommu_new(struct mm_struct *mm,
28 extern long mm_iommu_newdev(struct mm_struct *mm, unsigned long ua,
31 extern long mm_iommu_put(struct mm_struct *mm,
33 extern void mm_iommu_init(struct mm_struct *mm);
34 extern struct mm_iommu_table_group_mem_t *mm_iommu_lookup(struct mm_struct *mm,
36 extern struct mm_iommu_table_group_mem_t *mm_iommu_get(struct mm_struct *mm,
40 extern bool mm_iommu_is_devmem(struct mm_struct *mm, unsigned long hpa,
[all …]
H A Dpgalloc.h8 static inline gfp_t pgtable_gfp_flags(struct mm_struct *mm, gfp_t gfp) in pgtable_gfp_flags()
15 static inline gfp_t pgtable_gfp_flags(struct mm_struct *mm, gfp_t gfp) in pgtable_gfp_flags()
23 pte_t *pte_fragment_alloc(struct mm_struct *mm, int kernel);
25 static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm) in pte_alloc_one_kernel()
30 static inline pgtable_t pte_alloc_one(struct mm_struct *mm) in pte_alloc_one()
38 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
43 static inline void pte_free(struct mm_struct *mm, pgtable_t ptepage) in pte_free()
50 void pte_free_defer(struct mm_struct *mm, pgtable_t pgtable);
/linux/include/linux/
H A Dmmap_lock.h26 void __mmap_lock_do_trace_start_locking(struct mm_struct *mm, bool write);
27 void __mmap_lock_do_trace_acquire_returned(struct mm_struct *mm, bool write,
29 void __mmap_lock_do_trace_released(struct mm_struct *mm, bool write);
31 static inline void __mmap_lock_trace_start_locking(struct mm_struct *mm, in __mmap_lock_trace_start_locking()
38 static inline void __mmap_lock_trace_acquire_returned(struct mm_struct *mm, in __mmap_lock_trace_acquire_returned()
45 static inline void __mmap_lock_trace_released(struct mm_struct *mm, bool write) in __mmap_lock_trace_released()
53 static inline void __mmap_lock_trace_start_locking(struct mm_struct *mm, in __mmap_lock_trace_start_locking()
58 static inline void __mmap_lock_trace_acquire_returned(struct mm_struct *mm, in __mmap_lock_trace_acquire_returned()
63 static inline void __mmap_lock_trace_released(struct mm_struct *mm, bool write) in __mmap_lock_trace_released()
69 static inline void mmap_assert_locked(const struct mm_struct *mm) in mmap_assert_locked()
[all …]
H A Dksm.h20 vm_flags_t ksm_vma_flags(struct mm_struct *mm, const struct file *file,
22 int ksm_enable_merge_any(struct mm_struct *mm);
23 int ksm_disable_merge_any(struct mm_struct *mm);
24 int ksm_disable(struct mm_struct *mm);
26 int __ksm_enter(struct mm_struct *mm);
27 void __ksm_exit(struct mm_struct *mm);
37 static inline void ksm_map_zero_page(struct mm_struct *mm) in ksm_map_zero_page()
43 static inline void ksm_might_unmap_zero_page(struct mm_struct *mm, pte_t pte) in ksm_might_unmap_zero_page()
51 static inline long mm_ksm_zero_pages(struct mm_struct *mm) in mm_ksm_zero_pages()
56 static inline void ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) in ksm_fork()
[all …]
H A Dkhugepaged.h14 extern void __khugepaged_enter(struct mm_struct *mm);
15 extern void __khugepaged_exit(struct mm_struct *mm);
20 extern int collapse_pte_mapped_thp(struct mm_struct *mm, unsigned long addr,
23 static inline void khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) in khugepaged_fork()
29 static inline void khugepaged_exit(struct mm_struct *mm) in khugepaged_exit()
35 static inline void khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) in khugepaged_fork()
38 static inline void khugepaged_exit(struct mm_struct *mm) in khugepaged_exit()
45 static inline int collapse_pte_mapped_thp(struct mm_struct *mm, in collapse_pte_mapped_thp()
/linux/include/linux/sched/
H A Dmm.h16 extern struct mm_struct *mm_alloc(void);
35 static inline void mmgrab(struct mm_struct *mm) in mmgrab()
45 extern void __mmdrop(struct mm_struct *mm);
47 static inline void mmdrop(struct mm_struct *mm) in mmdrop()
65 struct mm_struct *mm = container_of(rhp, struct mm_struct, delayed_drop); in __mmdrop_delayed()
74 static inline void mmdrop_sched(struct mm_struct *mm) in mmdrop_sched()
81 static inline void mmdrop_sched(struct mm_struct *mm) in mmdrop_sched()
88 static inline void mmgrab_lazy_tlb(struct mm_struct *mm) in mmgrab_lazy_tlb()
94 static inline void mmdrop_lazy_tlb(struct mm_struct *mm) in mmdrop_lazy_tlb()
107 static inline void mmdrop_lazy_tlb_sched(struct mm_struct *mm) in mmdrop_lazy_tlb_sched()
[all …]
/linux/arch/m68k/include/asm/
H A Dmmu_context.h25 extern struct mm_struct *context_mm[LAST_CONTEXT+1];
28 static inline void get_mmu_context(struct mm_struct *mm) in get_mmu_context()
58 static inline void destroy_context(struct mm_struct *mm) in destroy_context()
72 static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, in switch_mm()
84 static inline void activate_mm(struct mm_struct *active_mm, in activate_mm()
85 struct mm_struct *mm) in activate_mm()
96 struct mm_struct *mm; in load_ksp_mmu()
173 extern unsigned long get_free_context(struct mm_struct *mm);
179 struct mm_struct *mm) in init_new_context()
187 static inline void get_mmu_context(struct mm_struct *mm) in get_mmu_context()
[all …]
H A Dmotorola_pgalloc.h18 extern void *get_pointer_table(struct mm_struct *mm, int type);
27 static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm) in pte_alloc_one_kernel()
32 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
37 static inline pgtable_t pte_alloc_one(struct mm_struct *mm) in pte_alloc_one()
42 static inline void pte_free(struct mm_struct *mm, pgtable_t pgtable) in pte_free()
54 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address) in pmd_alloc_one()
59 static inline int pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
71 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
76 static inline pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
82 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, pte_t *pte) in pmd_populate_kernel()
[all …]
/linux/arch/s390/include/asm/
H A Dpgalloc.h22 unsigned long *crst_table_alloc_noprof(struct mm_struct *);
24 void crst_table_free(struct mm_struct *, unsigned long *);
26 unsigned long *page_table_alloc_noprof(struct mm_struct *);
28 void page_table_free(struct mm_struct *, unsigned long *);
30 struct ptdesc *page_table_alloc_pgste_noprof(struct mm_struct *mm);
39 int crst_table_upgrade(struct mm_struct *mm, unsigned long limit);
41 static inline unsigned long check_asce_limit(struct mm_struct *mm, unsigned long addr, in check_asce_limit()
55 static inline p4d_t *p4d_alloc_one_noprof(struct mm_struct *mm, unsigned long address) in p4d_alloc_one_noprof()
68 static inline void p4d_free(struct mm_struct *mm, p4d_t *p4d) in p4d_free()
77 static inline pud_t *pud_alloc_one_noprof(struct mm_struct *mm, unsigned long address) in pud_alloc_one_noprof()
[all …]
/linux/arch/x86/include/asm/
H A Dpgalloc.h15 static inline int __paravirt_pgd_alloc(struct mm_struct *mm) { return 0; } in __paravirt_pgd_alloc()
21 static inline void paravirt_pgd_free(struct mm_struct *mm, pgd_t *pgd) {} in paravirt_pgd_free()
22 static inline void paravirt_alloc_pte(struct mm_struct *mm, unsigned long pfn) {} in paravirt_alloc_pte()
23 static inline void paravirt_alloc_pmd(struct mm_struct *mm, unsigned long pfn) {} in paravirt_alloc_pmd()
26 static inline void paravirt_alloc_pud(struct mm_struct *mm, unsigned long pfn) {} in paravirt_alloc_pud()
27 static inline void paravirt_alloc_p4d(struct mm_struct *mm, unsigned long pfn) {} in paravirt_alloc_p4d()
49 extern pgd_t *pgd_alloc(struct mm_struct *);
50 extern void pgd_free(struct mm_struct *mm, pgd_t *pgd);
52 extern pgtable_t pte_alloc_one(struct mm_struct *);
62 static inline void pmd_populate_kernel(struct mm_struct *mm, in pmd_populate_kernel()
[all …]
/linux/include/asm-generic/
H A Dpgalloc.h19 static inline pte_t *__pte_alloc_one_kernel_noprof(struct mm_struct *mm) in __pte_alloc_one_kernel_noprof()
43 static inline pte_t *pte_alloc_one_kernel_noprof(struct mm_struct *mm) in pte_alloc_one_kernel_noprof()
55 static inline void pte_free_kernel(struct mm_struct *mm, pte_t *pte) in pte_free_kernel()
72 static inline pgtable_t __pte_alloc_one_noprof(struct mm_struct *mm, gfp_t gfp) in __pte_alloc_one_noprof()
97 static inline pgtable_t pte_alloc_one_noprof(struct mm_struct *mm) in pte_alloc_one_noprof()
114 static inline void pte_free(struct mm_struct *mm, struct page *pte_page) in pte_free()
136 static inline pmd_t *pmd_alloc_one_noprof(struct mm_struct *mm, unsigned long addr) in pmd_alloc_one_noprof()
160 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
173 static inline pud_t *__pud_alloc_one_noprof(struct mm_struct *mm, unsigned long addr) in __pud_alloc_one_noprof()
204 static inline pud_t *pud_alloc_one_noprof(struct mm_struct *mm, unsigned long addr) in pud_alloc_one_noprof()
[all …]
H A Dmmu_context.h10 struct mm_struct;
21 static inline void enter_lazy_tlb(struct mm_struct *mm, in enter_lazy_tlb()
35 struct mm_struct *mm) in init_new_context()
46 static inline void destroy_context(struct mm_struct *mm) in destroy_context()
57 static inline void activate_mm(struct mm_struct *prev_mm, in activate_mm()
58 struct mm_struct *next_mm) in activate_mm()
71 struct mm_struct *mm) in deactivate_mm()
/linux/arch/arm/include/asm/
H A Dmmu_context.h24 void __check_vmalloc_seq(struct mm_struct *mm);
27 static inline void check_vmalloc_seq(struct mm_struct *mm) in check_vmalloc_seq()
38 void check_and_switch_context(struct mm_struct *mm, struct task_struct *tsk);
42 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context()
49 void a15_erratum_get_cpumask(int this_cpu, struct mm_struct *mm,
52 static inline void a15_erratum_get_cpumask(int this_cpu, struct mm_struct *mm, in a15_erratum_get_cpumask()
62 static inline void check_and_switch_context(struct mm_struct *mm, in check_and_switch_context()
85 struct mm_struct *mm = current->mm; in finish_arch_post_lock_switch()
117 switch_mm(struct mm_struct *prev, struct mm_struct *next, in switch_mm()
142 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
/linux/arch/powerpc/include/asm/book3s/64/
H A Dpgalloc.h19 extern pmd_t *pmd_fragment_alloc(struct mm_struct *, unsigned long);
25 static inline pgd_t *radix__pgd_alloc(struct mm_struct *mm) in radix__pgd_alloc()
39 static inline void radix__pgd_free(struct mm_struct *mm, pgd_t *pgd) in radix__pgd_free()
48 static inline pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
81 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
88 static inline void p4d_populate(struct mm_struct *mm, p4d_t *pgd, pud_t *pud) in p4d_populate()
93 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long addr) in pud_alloc_one()
126 static inline void pud_free(struct mm_struct *mm, pud_t *pud) in pud_free()
131 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
142 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long addr) in pmd_alloc_one()
[all …]
H A Dtlbflush-radix.h12 struct mm_struct;
65 extern void radix__flush_tlb_range_psize(struct mm_struct *mm, unsigned long start,
67 void radix__flush_tlb_pwc_range_psize(struct mm_struct *mm, unsigned long start,
77 extern void radix__local_flush_tlb_mm(struct mm_struct *mm);
78 extern void radix__local_flush_all_mm(struct mm_struct *mm);
80 extern void radix__local_flush_tlb_page_psize(struct mm_struct *mm, unsigned long vmaddr,
84 extern void radix__flush_tlb_mm(struct mm_struct *mm);
85 extern void radix__flush_all_mm(struct mm_struct *mm);
87 extern void radix__flush_tlb_page_psize(struct mm_struct *mm, unsigned long vmaddr,
96 extern void radix__flush_tlb_collapsed_pmd(struct mm_struct *mm, unsigned long addr);
/linux/rust/helpers/
H A Dmm.c6 void rust_helper_mmgrab(struct mm_struct *mm) in rust_helper_mmgrab()
11 void rust_helper_mmdrop(struct mm_struct *mm) in rust_helper_mmdrop()
16 void rust_helper_mmget(struct mm_struct *mm) in rust_helper_mmget()
21 bool rust_helper_mmget_not_zero(struct mm_struct *mm) in rust_helper_mmget_not_zero()
26 void rust_helper_mmap_read_lock(struct mm_struct *mm) in rust_helper_mmap_read_lock()
31 bool rust_helper_mmap_read_trylock(struct mm_struct *mm) in rust_helper_mmap_read_trylock()
36 void rust_helper_mmap_read_unlock(struct mm_struct *mm) in rust_helper_mmap_read_unlock()
41 struct vm_area_struct *rust_helper_vma_lookup(struct mm_struct *mm, in rust_helper_vma_lookup()
/linux/arch/sparc/include/asm/
H A Dpgalloc_64.h26 static inline pgd_t *pgd_alloc(struct mm_struct *mm) in pgd_alloc()
31 static inline void pgd_free(struct mm_struct *mm, pgd_t *pgd) in pgd_free()
43 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long addr) in pud_alloc_one()
48 static inline void pud_free(struct mm_struct *mm, pud_t *pud) in pud_free()
53 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long addr) in pmd_alloc_one()
58 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
63 pte_t *pte_alloc_one_kernel(struct mm_struct *mm);
64 pgtable_t pte_alloc_one(struct mm_struct *mm);
65 void pte_free_kernel(struct mm_struct *mm, pte_t *pte);
66 void pte_free(struct mm_struct *mm, pgtable_t ptepage);
[all …]
/linux/arch/arm/mm/
H A Dproc.c26 void cpu_arm7tdmi_switch_mm(phys_addr_t pgd_phys, struct mm_struct *mm);
41 void cpu_arm720_switch_mm(phys_addr_t pgd_phys, struct mm_struct *mm);
58 void cpu_arm740_switch_mm(phys_addr_t pgd_phys, struct mm_struct *mm);
73 void cpu_arm9tdmi_switch_mm(phys_addr_t pgd_phys, struct mm_struct *mm);
88 void cpu_arm920_switch_mm(phys_addr_t pgd_phys, struct mm_struct *mm);
111 void cpu_arm922_switch_mm(phys_addr_t pgd_phys, struct mm_struct *mm);
128 void cpu_arm925_switch_mm(phys_addr_t pgd_phys, struct mm_struct *mm);
145 void cpu_arm926_switch_mm(phys_addr_t pgd_phys, struct mm_struct *mm);
168 void cpu_arm940_switch_mm(phys_addr_t pgd_phys, struct mm_struct *mm);
183 void cpu_arm946_switch_mm(phys_addr_t pgd_phys, struct mm_struct *mm);
[all …]
/linux/arch/powerpc/include/asm/nohash/
H A Dtlbflush.h27 struct mm_struct;
35 static inline void local_flush_tlb_mm(struct mm_struct *mm) in local_flush_tlb_mm()
48 static inline void local_flush_tlb_page_psize(struct mm_struct *mm, in local_flush_tlb_page_psize()
65 extern void local_flush_tlb_mm(struct mm_struct *mm);
67 void local_flush_tlb_page_psize(struct mm_struct *mm, unsigned long vmaddr, int psize);
69 extern void __local_flush_tlb_page(struct mm_struct *mm, unsigned long vmaddr,
74 extern void flush_tlb_mm(struct mm_struct *mm);
76 extern void __flush_tlb_page(struct mm_struct *mm, unsigned long vmaddr,
/linux/arch/powerpc/include/asm/nohash/64/
H A Dpgalloc.h18 static inline void p4d_populate(struct mm_struct *mm, p4d_t *p4d, pud_t *pud) in p4d_populate()
23 static inline pud_t *pud_alloc_one(struct mm_struct *mm, unsigned long addr) in pud_alloc_one()
29 static inline void pud_free(struct mm_struct *mm, pud_t *pud) in pud_free()
34 static inline void pud_populate(struct mm_struct *mm, pud_t *pud, pmd_t *pmd) in pud_populate()
39 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, in pmd_populate_kernel()
45 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate()
51 static inline pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long addr) in pmd_alloc_one()
57 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) in pmd_free()
/linux/arch/loongarch/include/asm/
H A Dmmu_context.h38 static inline int asid_valid(struct mm_struct *mm, unsigned int cpu) in asid_valid()
46 static inline void enter_lazy_tlb(struct mm_struct *mm, struct task_struct *tsk) in enter_lazy_tlb()
52 get_new_mmu_context(struct mm_struct *mm, unsigned long cpu, bool *need_flush) in get_new_mmu_context()
67 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context()
88 static inline void switch_mm_irqs_off(struct mm_struct *prev, struct mm_struct *next, in switch_mm_irqs_off()
115 static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, in switch_mm()
129 static inline void destroy_context(struct mm_struct *mm) in destroy_context()
141 drop_mmu_context(struct mm_struct *mm, unsigned int cpu) in drop_mmu_context()
/linux/arch/parisc/include/asm/
H A Dmmu_context.h19 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context()
29 destroy_context(struct mm_struct *mm) in destroy_context()
50 static inline void switch_mm_irqs_off(struct mm_struct *prev, in switch_mm_irqs_off()
51 struct mm_struct *next, struct task_struct *tsk) in switch_mm_irqs_off()
65 static inline void switch_mm(struct mm_struct *prev, in switch_mm()
66 struct mm_struct *next, struct task_struct *tsk) in switch_mm()
80 static inline void activate_mm(struct mm_struct *prev, struct mm_struct *next) in activate_mm()
/linux/arch/sh/include/asm/
H A Dpgalloc.h13 extern pgd_t *pgd_alloc(struct mm_struct *);
14 extern void pgd_free(struct mm_struct *mm, pgd_t *pgd);
17 extern void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmd);
18 extern pmd_t *pmd_alloc_one(struct mm_struct *mm, unsigned long address);
19 extern void pmd_free(struct mm_struct *mm, pmd_t *pmd);
23 static inline void pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmd, in pmd_populate_kernel()
29 static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, in pmd_populate()
/linux/arch/mips/include/asm/
H A Dmmu_context.h106 static inline u64 cpu_context(unsigned int cpu, const struct mm_struct *mm) in cpu_context()
115 struct mm_struct *mm, u64 ctx) in set_cpu_context()
127 extern void get_new_mmu_context(struct mm_struct *mm);
128 extern void check_mmu_context(struct mm_struct *mm);
129 extern void check_switch_mmu_context(struct mm_struct *mm);
137 init_new_context(struct task_struct *tsk, struct mm_struct *mm) in init_new_context()
155 static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next, in switch_mm()
181 static inline void destroy_context(struct mm_struct *mm) in destroy_context()
187 drop_mmu_context(struct mm_struct *mm) in drop_mmu_context()
/linux/arch/x86/kernel/
H A Dldt.c42 void load_mm_ldt(struct mm_struct *mm) in load_mm_ldt()
90 void switch_ldt(struct mm_struct *prev, struct mm_struct *next) in switch_ldt()
138 struct mm_struct *mm = __mm; in flush_ldt()
189 static void do_sanity_check(struct mm_struct *mm, in do_sanity_check()
234 static void map_ldt_struct_to_user(struct mm_struct *mm) in map_ldt_struct_to_user()
247 static void sanity_check_ldt_mapping(struct mm_struct *mm) in sanity_check_ldt_mapping()
264 static void map_ldt_struct_to_user(struct mm_struct *mm) in map_ldt_struct_to_user()
272 static void sanity_check_ldt_mapping(struct mm_struct *mm) in sanity_check_ldt_mapping()
288 map_ldt_struct(struct mm_struct *mm, struct ldt_struct *ldt, int slot) in map_ldt_struct()
349 static void unmap_ldt_struct(struct mm_struct *mm, struct ldt_struct *ldt) in unmap_ldt_struct()
[all …]

12345678910>>...23