Searched refs:mm (Results 1 - 25 of 73) sorted by relevance

123

/include/asm-generic/
H A Dmm_hooks.h10 struct mm_struct *mm)
14 static inline void arch_exit_mmap(struct mm_struct *mm) argument
9 arch_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm) argument
H A Dmmu_context.h14 static inline void enter_lazy_tlb(struct mm_struct *mm, argument
20 struct mm_struct *mm)
25 static inline void destroy_context(struct mm_struct *mm) argument
30 struct mm_struct *mm)
19 init_new_context(struct task_struct *tsk, struct mm_struct *mm) argument
29 deactivate_mm(struct task_struct *task, struct mm_struct *mm) argument
H A Dtlbflush.h14 static inline void flush_tlb_mm(struct mm_struct *mm) argument
H A D4level-fixup.h13 #define pmd_alloc(mm, pud, address) \
14 ((unlikely(pgd_none(*(pud))) && __pmd_alloc(mm, pud, address))? \
17 #define pud_alloc(mm, pgd, address) (pgd)
25 #define pud_populate(mm, pud, pmd) pgd_populate(mm, pud, pmd)
31 #define pud_free(mm, x) do { } while (0)
H A Dcacheflush.h5 #include <linux/mm.h>
12 #define flush_cache_mm(mm) do { } while (0)
13 #define flush_cache_dup_mm(mm) do { } while (0)
H A Dhugetlb.h34 static inline void huge_pte_clear(struct mm_struct *mm, unsigned long addr, argument
37 pte_clear(mm, addr, ptep);
H A Dpgtable.h83 static inline pte_t ptep_get_and_clear(struct mm_struct *mm, argument
88 pte_clear(mm, address, ptep);
95 static inline pmd_t pmdp_get_and_clear(struct mm_struct *mm, argument
107 static inline pte_t ptep_get_and_clear_full(struct mm_struct *mm, argument
112 pte = ptep_get_and_clear(mm, address, ptep);
123 static inline void pte_clear_not_present_full(struct mm_struct *mm, argument
128 pte_clear(mm, address, ptep);
146 static inline void ptep_set_wrprotect(struct mm_struct *mm, unsigned long address, pte_t *ptep) argument
149 set_pte_at(mm, address, ptep, pte_wrprotect(old_pte));
155 static inline void pmdp_set_wrprotect(struct mm_struct *mm, argument
162 pmdp_set_wrprotect(struct mm_struct *mm, unsigned long address, pmd_t *pmdp) argument
337 __ptep_modify_prot_start(struct mm_struct *mm, unsigned long addr, pte_t *ptep) argument
349 __ptep_modify_prot_commit(struct mm_struct *mm, unsigned long addr, pte_t *ptep, pte_t pte) argument
375 ptep_modify_prot_start(struct mm_struct *mm, unsigned long addr, pte_t *ptep) argument
386 ptep_modify_prot_commit(struct mm_struct *mm, unsigned long addr, pte_t *ptep, pte_t pte) argument
752 ptep_set_numa(struct mm_struct *mm, unsigned long addr, pte_t *ptep) argument
776 pmdp_set_numa(struct mm_struct *mm, unsigned long addr, pmd_t *pmdp) argument
812 ptep_set_numa(struct mm_struct *mm, unsigned long addr, pte_t *ptep) argument
824 pmdp_set_numa(struct mm_struct *mm, unsigned long addr, pmd_t *pmdp) argument
[all...]
H A Dpgtable-nopmd.h35 #define pud_populate(mm, pmd, pte) do { } while (0)
58 #define pmd_alloc_one(mm, address) NULL
59 static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) argument
H A Dpgtable-nopud.h31 #define pgd_populate(mm, pgd, pud) do { } while (0)
53 #define pud_alloc_one(mm, address) NULL
54 #define pud_free(mm, x) do { } while (0)
/include/linux/
H A Dmmu_context.h6 void use_mm(struct mm_struct *mm);
7 void unuse_mm(struct mm_struct *mm);
H A Dvmacache.h5 #include <linux/mm.h>
18 extern void vmacache_flush_all(struct mm_struct *mm);
20 extern struct vm_area_struct *vmacache_find(struct mm_struct *mm,
24 extern struct vm_area_struct *vmacache_find_exact(struct mm_struct *mm,
29 static inline void vmacache_invalidate(struct mm_struct *mm) argument
31 mm->vmacache_seqnum++;
34 if (unlikely(mm->vmacache_seqnum == 0))
35 vmacache_flush_all(mm);
H A Dmmu_notifier.h16 * mm->mmu_notifier_mm inside the mm_take_all_locks() protected
21 /* all mmu notifiers registerd in this mm are queued in this list */
29 * Called either by mmu_notifier_unregister or when the mm is
32 * methods (the ones invoked outside the mm context) and it
37 * tsk->mm == mm exits.
44 * last thread of this mm quits, you've also to be sure that
52 struct mm_struct *mm);
64 struct mm_struct *mm,
75 struct mm_struct *mm,
165 mm_has_notifiers(struct mm_struct *mm) argument
194 mmu_notifier_release(struct mm_struct *mm) argument
200 mmu_notifier_clear_flush_young(struct mm_struct *mm, unsigned long start, unsigned long end) argument
209 mmu_notifier_test_young(struct mm_struct *mm, unsigned long address) argument
217 mmu_notifier_change_pte(struct mm_struct *mm, unsigned long address, pte_t pte) argument
224 mmu_notifier_invalidate_page(struct mm_struct *mm, unsigned long address) argument
231 mmu_notifier_invalidate_range_start(struct mm_struct *mm, unsigned long start, unsigned long end) argument
238 mmu_notifier_invalidate_range_end(struct mm_struct *mm, unsigned long start, unsigned long end) argument
245 mmu_notifier_mm_init(struct mm_struct *mm) argument
250 mmu_notifier_mm_destroy(struct mm_struct *mm) argument
308 mmu_notifier_release(struct mm_struct *mm) argument
312 mmu_notifier_clear_flush_young(struct mm_struct *mm, unsigned long start, unsigned long end) argument
319 mmu_notifier_test_young(struct mm_struct *mm, unsigned long address) argument
325 mmu_notifier_change_pte(struct mm_struct *mm, unsigned long address, pte_t pte) argument
330 mmu_notifier_invalidate_page(struct mm_struct *mm, unsigned long address) argument
335 mmu_notifier_invalidate_range_start(struct mm_struct *mm, unsigned long start, unsigned long end) argument
340 mmu_notifier_invalidate_range_end(struct mm_struct *mm, unsigned long start, unsigned long end) argument
345 mmu_notifier_mm_init(struct mm_struct *mm) argument
349 mmu_notifier_mm_destroy(struct mm_struct *mm) argument
[all...]
H A Dkhugepaged.h7 extern int __khugepaged_enter(struct mm_struct *mm);
8 extern void __khugepaged_exit(struct mm_struct *mm);
26 static inline int khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) argument
29 return __khugepaged_enter(mm);
33 static inline void khugepaged_exit(struct mm_struct *mm) argument
35 if (test_bit(MMF_VM_HUGEPAGE, &mm->flags))
36 __khugepaged_exit(mm);
51 static inline int khugepaged_fork(struct mm_struct *mm, struct mm_struct *oldmm) argument
55 static inline void khugepaged_exit(struct mm_struct *mm) argument
H A Dksm.h11 #include <linux/mm.h>
22 int __ksm_enter(struct mm_struct *mm);
23 void __ksm_exit(struct mm_struct *mm);
25 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) argument
28 return __ksm_enter(mm);
32 static inline void ksm_exit(struct mm_struct *mm) argument
34 if (test_bit(MMF_VM_MERGEABLE, &mm->flags))
35 __ksm_exit(mm);
81 static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm) argument
86 static inline void ksm_exit(struct mm_struct *mm) argument
[all...]
H A Dhugetlb_inline.h6 #include <linux/mm.h>
H A Dmmdebug.h14 void dump_mm(const struct mm_struct *mm);
32 #define VM_BUG_ON_MM(cond, mm) \
35 dump_mm(mm); \
46 #define VM_BUG_ON_MM(cond, mm) VM_BUG_ON(cond)
H A Dmm_types.h271 unsigned long vm_flags; /* Flags, see mm.h. */
372 struct list_head mmlist; /* List of maybe swapped mm's. These are globally strung
417 * user/owner of this mm. All of the following must be true in
420 * current == mm->owner
421 * current->mm != mm
422 * new_owner->mm == mm
464 static inline void mm_init_cpumask(struct mm_struct *mm) argument
467 mm
473 mm_cpumask(struct mm_struct *mm) argument
485 mm_tlb_flush_pending(struct mm_struct *mm) argument
490 set_tlb_flush_pending(struct mm_struct *mm) argument
501 clear_tlb_flush_pending(struct mm_struct *mm) argument
507 mm_tlb_flush_pending(struct mm_struct *mm) argument
511 set_tlb_flush_pending(struct mm_struct *mm) argument
514 clear_tlb_flush_pending(struct mm_struct *mm) argument
[all...]
H A Dmm.h81 * The idea being to have a "virtual" mm in the same way
83 * mm details, and allowing different kinds of memory mappings
177 * Note: mm/huge_memory.c VM_NO_THP depends on this definition.
181 /* This mask defines which mm->def_flags a process can inherit its parent */
262 * in mm/mempolicy.c will do this automatically.
532 * (see mm/page_alloc.c).
644 * page, and the fields in 'struct page' are the responsibility of mm/slab.c
1153 struct mm_struct *mm; member in struct:mm_walk
1187 extern int handle_mm_fault(struct mm_struct *mm, struct vm_area_struct *vma,
1189 extern int fixup_user_fault(struct task_struct *tsk, struct mm_struct *mm,
1192 handle_mm_fault(struct mm_struct *mm, struct vm_area_struct *vma, unsigned long address, unsigned int flags) argument
1200 fixup_user_fault(struct task_struct *tsk, struct mm_struct *mm, unsigned long address, unsigned int fault_flags) argument
1294 get_mm_counter(struct mm_struct *mm, int member) argument
1309 add_mm_counter(struct mm_struct *mm, int member, long value) argument
1314 inc_mm_counter(struct mm_struct *mm, int member) argument
1319 dec_mm_counter(struct mm_struct *mm, int member) argument
1324 get_mm_rss(struct mm_struct *mm) argument
1330 get_mm_hiwater_rss(struct mm_struct *mm) argument
1335 get_mm_hiwater_vm(struct mm_struct *mm) argument
1340 update_hiwater_rss(struct mm_struct *mm) argument
1348 update_hiwater_vm(struct mm_struct *mm) argument
1354 reset_mm_hiwater_rss(struct mm_struct *mm) argument
1359 setmax_mm_hiwater_rss(unsigned long *maxrss, struct mm_struct *mm) argument
1371 sync_mm_rss(struct mm_struct *mm) argument
1380 get_locked_pte(struct mm_struct *mm, unsigned long addr, spinlock_t **ptl) argument
1389 __pud_alloc(struct mm_struct *mm, pgd_t *pgd, unsigned long address) argument
1399 __pmd_alloc(struct mm_struct *mm, pud_t *pud, unsigned long address) argument
1417 pud_alloc(struct mm_struct *mm, pgd_t *pgd, unsigned long address) argument
1423 pmd_alloc(struct mm_struct *mm, pud_t *pud, unsigned long address) argument
1460 pte_lockptr(struct mm_struct *mm, pmd_t *pmd) argument
1493 pte_lockptr(struct mm_struct *mm, pmd_t *pmd) argument
1556 pmd_lockptr(struct mm_struct *mm, pmd_t *pmd) argument
1581 pmd_lockptr(struct mm_struct *mm, pmd_t *pmd) argument
1593 pmd_lock(struct mm_struct *mm, pmd_t *pmd) argument
1955 find_vma_intersection(struct mm_struct * mm, unsigned long start_addr, unsigned long end_addr) argument
1970 find_exact_vma(struct mm_struct *mm, unsigned long vm_start, unsigned long vm_end) argument
2044 vm_stat_account(struct mm_struct *mm, unsigned long flags, struct file *file, long pages) argument
2069 get_gate_vma(struct mm_struct *mm) argument
2074 in_gate_area(struct mm_struct *mm, unsigned long addr) argument
[all...]
H A Dcoredump.h5 #include <linux/mm.h>
H A Dzsmalloc.h46 enum zs_mapmode mm);
H A Dhugetlb.h73 int hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma,
86 pte_t *huge_pmd_share(struct mm_struct *mm, unsigned long addr, pud_t *pud);
95 pte_t *huge_pte_alloc(struct mm_struct *mm,
97 pte_t *huge_pte_offset(struct mm_struct *mm, unsigned long addr);
98 int huge_pmd_unshare(struct mm_struct *mm, unsigned long *addr, pte_t *ptep);
99 struct page *follow_huge_addr(struct mm_struct *mm, unsigned long address,
101 struct page *follow_huge_pmd(struct mm_struct *mm, unsigned long address,
103 struct page *follow_huge_pud(struct mm_struct *mm, unsigned long address,
127 #define follow_huge_addr(mm, addr, write) ERR_PTR(-EINVAL)
136 #define follow_huge_pmd(mm, add
409 huge_pte_lockptr(struct hstate *h, struct mm_struct *mm, pte_t *pte) argument
458 huge_pte_lockptr(struct hstate *h, struct mm_struct *mm, pte_t *pte) argument
465 huge_pte_lock(struct hstate *h, struct mm_struct *mm, pte_t *pte) argument
[all...]
H A Dmigrate.h4 #include <linux/mm.h>
39 extern int migrate_vmas(struct mm_struct *mm,
60 static inline int migrate_vmas(struct mm_struct *mm, argument
104 extern int migrate_misplaced_transhuge_page(struct mm_struct *mm,
110 static inline int migrate_misplaced_transhuge_page(struct mm_struct *mm, argument
/include/drm/
H A Ddrm_mm.h73 struct drm_mm *mm; member in struct:drm_mm_node
114 * @mm: drm_mm to check
120 * True if the @mm is initialized.
122 static inline bool drm_mm_initialized(struct drm_mm *mm) argument
124 return mm->hole_stack.next;
174 * @mm: drm_mm allocator to walk
179 #define drm_mm_for_each_node(entry, mm) list_for_each_entry(entry, \
180 &(mm)->head_node.node_list, \
186 * @mm: drm_mm allocator to walk
202 #define drm_mm_for_each_hole(entry, mm, hole_star
246 drm_mm_insert_node(struct drm_mm *mm, struct drm_mm_node *node, unsigned long size, unsigned alignment, enum drm_mm_search_flags flags) argument
283 drm_mm_insert_node_in_range(struct drm_mm *mm, struct drm_mm_node *node, unsigned long size, unsigned alignment, unsigned long start, unsigned long end, enum drm_mm_search_flags flags) argument
[all...]
/include/misc/
H A Dcxl.h39 void cxl_slbia(struct mm_struct *mm);
44 static inline void cxl_slbia(struct mm_struct *mm) {} argument
/include/trace/events/
H A Dxen.h168 TP_PROTO(struct mm_struct *mm, unsigned long addr,
170 TP_ARGS(mm, addr, ptep, pteval),
172 __field(struct mm_struct *, mm)
177 TP_fast_assign(__entry->mm = mm;
181 TP_printk("mm %p addr %lx ptep %p pteval %0*llx (raw %0*llx)",
182 __entry->mm, __entry->addr, __entry->ptep,
188 TP_PROTO(struct mm_struct *mm, unsigned long addr, pte_t *ptep),
189 TP_ARGS(mm, addr, ptep),
191 __field(struct mm_struct *, mm)
[all...]

Completed in 2091 milliseconds

123