Home
last modified time | relevance | path

Searched refs:arg (Results 1 – 25 of 28) sorted by relevance

12

/mm/
Dmemory_hotplug.c617 void *arg) in online_pages_range() argument
639 *(unsigned long *)arg += nr_pages; in online_pages_range()
645 struct zone *zone, struct memory_notify *arg) in node_states_check_changes_online() argument
649 arg->status_change_nid = NUMA_NO_NODE; in node_states_check_changes_online()
650 arg->status_change_nid_normal = NUMA_NO_NODE; in node_states_check_changes_online()
651 arg->status_change_nid_high = NUMA_NO_NODE; in node_states_check_changes_online()
654 arg->status_change_nid = nid; in node_states_check_changes_online()
656 arg->status_change_nid_normal = nid; in node_states_check_changes_online()
659 arg->status_change_nid_high = nid; in node_states_check_changes_online()
663 static void node_states_set_node(int node, struct memory_notify *arg) in node_states_set_node() argument
[all …]
Dvmstat.c1316 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()
1467 static int pagetypeinfo_showblockcount(struct seq_file *m, void *arg) in pagetypeinfo_showblockcount() argument
1470 pg_data_t *pgdat = (pg_data_t *)arg; in pagetypeinfo_showblockcount()
1512 static int pagetypeinfo_show(struct seq_file *m, void *arg) in pagetypeinfo_show() argument
[all …]
Dpage_isolation.c22 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()
Drmap.c764 unsigned long address, void *arg) in page_referenced_one() argument
766 struct page_referenced_arg *pra = arg; in page_referenced_one()
825 static bool invalid_page_referenced_vma(struct vm_area_struct *vma, void *arg) in invalid_page_referenced_vma() argument
827 struct page_referenced_arg *pra = arg; in invalid_page_referenced_vma()
860 .arg = (void *)&pra, in page_referenced()
897 unsigned long address, void *arg) in page_mkclean_one() argument
906 int *cleaned = arg; in page_mkclean_one()
970 static bool invalid_mkclean_vma(struct vm_area_struct *vma, void *arg) in invalid_mkclean_vma() argument
983 .arg = (void *)&cleaned, in page_mkclean()
1354 unsigned long address, void *arg) in try_to_unmap_one() argument
[all …]
Dswap.c191 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
Dmemtest.c86 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()
Dgup_benchmark.c96 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()
Dmemfd.c237 long memfd_fcntl(struct file *file, unsigned int cmd, unsigned long arg) in memfd_fcntl() argument
244 if (arg > UINT_MAX) in memfd_fcntl()
247 error = memfd_add_seals(file, arg); in memfd_fcntl()
Dinternal.h457 #define mminit_dprintk(level, prefix, fmt, arg...) \ argument
461 pr_warn("mminit::" prefix " " fmt, ##arg); \
463 printk(KERN_DEBUG "mminit::" prefix " " fmt, ##arg); \
Doom_kill.c307 static int oom_evaluate_task(struct task_struct *task, void *arg) in oom_evaluate_task() argument
309 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()
Dpage_ext.c336 unsigned long action, void *arg) in page_ext_callback() argument
338 struct memory_notify *mn = arg; in page_ext_callback()
Dmemory.c4640 void (*process_subpage)(unsigned long addr, int idx, void *arg), in process_huge_page() argument
4641 void *arg) in process_huge_page()
4657 process_subpage(addr + i * PAGE_SIZE, i, arg); in process_huge_page()
4666 process_subpage(addr + i * PAGE_SIZE, i, arg); in process_huge_page()
4678 process_subpage(addr + left_idx * PAGE_SIZE, left_idx, arg); in process_huge_page()
4680 process_subpage(addr + right_idx * PAGE_SIZE, right_idx, arg); in process_huge_page()
4699 static void clear_subpage(unsigned long addr, int idx, void *arg) in clear_subpage() argument
4701 struct page *page = arg; in clear_subpage()
4745 static void copy_subpage(unsigned long addr, int idx, void *arg) in copy_subpage() argument
4747 struct copy_subpage_arg *copy_arg = arg; in copy_subpage()
[all …]
Dmm_init.c156 unsigned long action, void *arg) in mm_compute_batch_notifier() argument
Dpage_idle.c56 unsigned long addr, void *arg) in page_idle_clear_pte_refs_one() argument
Dmmu_gather.c115 static void tlb_remove_table_smp_sync(void *arg) in tlb_remove_table_smp_sync() argument
Dworkingset.c452 void *arg) __must_hold(lru_lock) in shadow_lru_isolate() argument
Dslub.c4134 static int slab_mem_going_offline_callback(void *arg) in slab_mem_going_offline_callback() argument
4146 static void slab_mem_offline_callback(void *arg) in slab_mem_offline_callback() argument
4150 struct memory_notify *marg = arg; in slab_mem_offline_callback()
4181 static int slab_mem_going_online_callback(void *arg) in slab_mem_going_online_callback() argument
4185 struct memory_notify *marg = arg; in slab_mem_going_online_callback()
4222 unsigned long action, void *arg) in slab_memory_callback() argument
4228 ret = slab_mem_going_online_callback(arg); in slab_memory_callback()
4231 ret = slab_mem_going_offline_callback(arg); in slab_memory_callback()
4235 slab_mem_offline_callback(arg); in slab_memory_callback()
Dksm.c2651 if (rwc->invalid_vma && rwc->invalid_vma(vma, rwc->arg)) in rmap_walk_ksm()
2654 if (!rwc->rmap_one(page, vma, addr, rwc->arg)) { in rmap_walk_ksm()
2777 unsigned long action, void *arg) in ksm_memory_callback() argument
2779 struct memory_notify *mn = arg; in ksm_memory_callback()
Dnommu.c1365 SYSCALL_DEFINE1(old_mmap, struct mmap_arg_struct __user *, arg) in SYSCALL_DEFINE1() argument
1369 if (copy_from_user(&a, arg, sizeof(a))) in SYSCALL_DEFINE1()
Dslab.c1119 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()
Dmemcontrol.c1220 int (*fn)(struct task_struct *, void *), void *arg) in mem_cgroup_scan_tasks() argument
1233 ret = fn(task, arg); in mem_cgroup_scan_tasks()
1860 unsigned mode, int sync, void *arg) in memcg_oom_wake_function() argument
1862 struct mem_cgroup *wake_memcg = (struct mem_cgroup *)arg; in memcg_oom_wake_function()
1872 return autoremove_wake_function(wait, mode, sync, arg); in memcg_oom_wake_function()
Dzswap.c679 if (!strcmp(s, *(char **)kp->arg) && zswap_has_pool) in __zswap_param_set()
Dfilemap.c1081 static int wake_page_function(wait_queue_entry_t *wait, unsigned mode, int sync, void *arg) in wake_page_function() argument
1084 struct wait_page_key *key = arg; in wake_page_function()
Dshmem.c3157 static void shmem_put_link(void *arg) in shmem_put_link() argument
3159 mark_page_accessed(arg); in shmem_put_link()
3160 put_page(arg); in shmem_put_link()
/mm/kasan/
Dquarantine.c288 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()

12