/mm/ |
D | memory_hotplug.c | 611 void *arg) in online_pages_range() argument 633 *(unsigned long *)arg += nr_pages; in online_pages_range() 639 struct zone *zone, struct memory_notify *arg) in node_states_check_changes_online() argument 643 arg->status_change_nid = NUMA_NO_NODE; in node_states_check_changes_online() 644 arg->status_change_nid_normal = NUMA_NO_NODE; in node_states_check_changes_online() 645 arg->status_change_nid_high = NUMA_NO_NODE; in node_states_check_changes_online() 648 arg->status_change_nid = nid; in node_states_check_changes_online() 650 arg->status_change_nid_normal = nid; in node_states_check_changes_online() 653 arg->status_change_nid_high = nid; in node_states_check_changes_online() 657 static void node_states_set_node(int node, struct memory_notify *arg) in node_states_set_node() argument [all …]
|
D | page_isolation.c | 22 struct memory_isolate_notify arg; in set_migratetype_isolate() local 39 arg.start_pfn = pfn; in set_migratetype_isolate() 40 arg.nr_pages = pageblock_nr_pages; in set_migratetype_isolate() 41 arg.pages_found = 0; in set_migratetype_isolate() 54 notifier_ret = memory_isolate_notify(MEM_ISOLATE_COUNT, &arg); in set_migratetype_isolate() 62 if (!has_unmovable_pages(zone, page, arg.pages_found, migratetype, in set_migratetype_isolate()
|
D | rmap.c | 755 unsigned long address, void *arg) in page_referenced_one() argument 757 struct page_referenced_arg *pra = arg; in page_referenced_one() 816 static bool invalid_page_referenced_vma(struct vm_area_struct *vma, void *arg) in invalid_page_referenced_vma() argument 818 struct page_referenced_arg *pra = arg; in invalid_page_referenced_vma() 849 .arg = (void *)&pra, in page_referenced() 885 unsigned long address, void *arg) in page_mkclean_one() argument 894 int *cleaned = arg; in page_mkclean_one() 958 static bool invalid_mkclean_vma(struct vm_area_struct *vma, void *arg) in invalid_mkclean_vma() argument 971 .arg = (void *)&cleaned, in page_mkclean() 1342 unsigned long address, void *arg) in try_to_unmap_one() argument [all …]
|
D | vmstat.c | 1316 static void *frag_next(struct seq_file *m, void *arg, loff_t *pos) in frag_next() argument 1318 pg_data_t *pgdat = (pg_data_t *)arg; in frag_next() 1324 static void frag_stop(struct seq_file *m, void *arg) in frag_stop() argument 1368 static int frag_show(struct seq_file *m, void *arg) in frag_show() argument 1370 pg_data_t *pgdat = (pg_data_t *)arg; in frag_show() 1418 static int pagetypeinfo_showfree(struct seq_file *m, void *arg) in pagetypeinfo_showfree() argument 1421 pg_data_t *pgdat = (pg_data_t *)arg; in pagetypeinfo_showfree() 1471 static int pagetypeinfo_showblockcount(struct seq_file *m, void *arg) in pagetypeinfo_showblockcount() argument 1474 pg_data_t *pgdat = (pg_data_t *)arg; in pagetypeinfo_showblockcount() 1516 static int pagetypeinfo_show(struct seq_file *m, void *arg) in pagetypeinfo_show() argument [all …]
|
D | swap.c | 191 void (*move_fn)(struct page *page, struct lruvec *lruvec, void *arg), in pagevec_lru_move_fn() argument 192 void *arg) in pagevec_lru_move_fn() 211 (*move_fn)(page, lruvec, arg); in pagevec_lru_move_fn() 220 void *arg) in pagevec_move_tail_fn() argument 222 int *pgmoved = arg; in pagevec_move_tail_fn() 276 void *arg) in __activate_page() argument 497 void *arg) in lru_deactivate_file_fn() argument 543 void *arg) in lru_deactivate_fn() argument 560 void *arg) in lru_lazyfree_fn() argument 906 void *arg) in __pagevec_lru_add_fn() argument
|
D | memtest.c | 86 static int __init parse_memtest(char *arg) in parse_memtest() argument 90 if (arg) in parse_memtest() 91 ret = kstrtouint(arg, 0, &memtest_pattern); in parse_memtest()
|
D | gup_benchmark.c | 96 unsigned long arg) in gup_benchmark_ioctl() argument 110 if (copy_from_user(&gup, (void __user *)arg, sizeof(gup))) in gup_benchmark_ioctl() 117 if (copy_to_user((void __user *)arg, &gup, sizeof(gup))) in gup_benchmark_ioctl()
|
D | memfd.c | 221 long memfd_fcntl(struct file *file, unsigned int cmd, unsigned long arg) in memfd_fcntl() argument 228 if (arg > UINT_MAX) in memfd_fcntl() 231 error = memfd_add_seals(file, arg); in memfd_fcntl()
|
D | internal.h | 432 #define mminit_dprintk(level, prefix, fmt, arg...) \ argument 436 pr_warn("mminit::" prefix " " fmt, ##arg); \ 438 printk(KERN_DEBUG "mminit::" prefix " " fmt, ##arg); \
|
D | oom_kill.c | 309 static int oom_evaluate_task(struct task_struct *task, void *arg) in oom_evaluate_task() argument 311 struct oom_control *oc = arg; in oom_evaluate_task() 380 static int dump_task(struct task_struct *p, void *arg) in dump_task() argument 382 struct oom_control *oc = arg; in dump_task()
|
D | page_ext.c | 336 unsigned long action, void *arg) in page_ext_callback() argument 338 struct memory_notify *mn = arg; in page_ext_callback()
|
D | memory.c | 4499 void (*process_subpage)(unsigned long addr, int idx, void *arg), in process_huge_page() argument 4500 void *arg) in process_huge_page() 4516 process_subpage(addr + i * PAGE_SIZE, i, arg); in process_huge_page() 4525 process_subpage(addr + i * PAGE_SIZE, i, arg); in process_huge_page() 4537 process_subpage(addr + left_idx * PAGE_SIZE, left_idx, arg); in process_huge_page() 4539 process_subpage(addr + right_idx * PAGE_SIZE, right_idx, arg); in process_huge_page() 4558 static void clear_subpage(unsigned long addr, int idx, void *arg) in clear_subpage() argument 4560 struct page *page = arg; in clear_subpage() 4604 static void copy_subpage(unsigned long addr, int idx, void *arg) in copy_subpage() argument 4606 struct copy_subpage_arg *copy_arg = arg; in copy_subpage() [all …]
|
D | mm_init.c | 156 unsigned long action, void *arg) in mm_compute_batch_notifier() argument
|
D | page_idle.c | 56 unsigned long addr, void *arg) in page_idle_clear_pte_refs_one() argument
|
D | mmu_gather.c | 115 static void tlb_remove_table_smp_sync(void *arg) in tlb_remove_table_smp_sync() argument
|
D | workingset.c | 452 void *arg) __must_hold(lru_lock) in shadow_lru_isolate() argument
|
D | slub.c | 4063 static int slab_mem_going_offline_callback(void *arg) in slab_mem_going_offline_callback() argument 4075 static void slab_mem_offline_callback(void *arg) in slab_mem_offline_callback() argument 4079 struct memory_notify *marg = arg; in slab_mem_offline_callback() 4110 static int slab_mem_going_online_callback(void *arg) in slab_mem_going_online_callback() argument 4114 struct memory_notify *marg = arg; in slab_mem_going_online_callback() 4151 unsigned long action, void *arg) in slab_memory_callback() argument 4157 ret = slab_mem_going_online_callback(arg); in slab_memory_callback() 4160 ret = slab_mem_going_offline_callback(arg); in slab_memory_callback() 4164 slab_mem_offline_callback(arg); in slab_memory_callback()
|
D | ksm.c | 2636 if (rwc->invalid_vma && rwc->invalid_vma(vma, rwc->arg)) in rmap_walk_ksm() 2639 if (!rwc->rmap_one(page, vma, addr, rwc->arg)) { in rmap_walk_ksm() 2787 unsigned long action, void *arg) in ksm_memory_callback() argument 2789 struct memory_notify *mn = arg; in ksm_memory_callback()
|
D | nommu.c | 1361 SYSCALL_DEFINE1(old_mmap, struct mmap_arg_struct __user *, arg) in SYSCALL_DEFINE1() argument 1365 if (copy_from_user(&a, arg, sizeof(a))) in SYSCALL_DEFINE1()
|
D | slab.c | 1119 unsigned long action, void *arg) in slab_memory_callback() argument 1121 struct memory_notify *mnb = arg; in slab_memory_callback() 2136 static void do_drain(void *arg) in do_drain() argument 2138 struct kmem_cache *cachep = arg; in do_drain()
|
D | memcontrol.c | 1202 int (*fn)(struct task_struct *, void *), void *arg) in mem_cgroup_scan_tasks() argument 1215 ret = fn(task, arg); in mem_cgroup_scan_tasks() 1842 unsigned mode, int sync, void *arg) in memcg_oom_wake_function() argument 1844 struct mem_cgroup *wake_memcg = (struct mem_cgroup *)arg; in memcg_oom_wake_function() 1854 return autoremove_wake_function(wait, mode, sync, arg); in memcg_oom_wake_function()
|
D | zswap.c | 679 if (!strcmp(s, *(char **)kp->arg) && zswap_has_pool) in __zswap_param_set()
|
D | filemap.c | 1028 static int wake_page_function(wait_queue_entry_t *wait, unsigned mode, int sync, void *arg) in wake_page_function() argument 1030 struct wait_page_key *key = arg; in wake_page_function()
|
D | shmem.c | 3153 static void shmem_put_link(void *arg) in shmem_put_link() argument 3155 mark_page_accessed(arg); in shmem_put_link() 3156 put_page(arg); in shmem_put_link()
|
/mm/kasan/ |
D | quarantine.c | 288 static void per_cpu_remove_cache(void *arg) in per_cpu_remove_cache() argument 290 struct kmem_cache *cache = arg; in per_cpu_remove_cache()
|