Home
last modified time | relevance | path

Searched refs:str (Results 1 – 21 of 21) sorted by relevance

/mm/
Ddebug.c283 static int __init setup_vm_debug(char *str) in setup_vm_debug() argument
291 if (*str++ != '=' || !*str) in setup_vm_debug()
295 if (*str == '-') in setup_vm_debug()
298 while (*str) { in setup_vm_debug()
299 switch (tolower(*str)) { in setup_vm_debug()
305 *str); in setup_vm_debug()
308 str++; in setup_vm_debug()
Dslub.c1310 parse_slub_debug_flags(char *str, slab_flags_t *flags, char **slabs, bool init) in parse_slub_debug_flags() argument
1315 while (*str && *str == ';') in parse_slub_debug_flags()
1316 str++; in parse_slub_debug_flags()
1318 if (*str == ',') { in parse_slub_debug_flags()
1329 for (; *str && *str != ',' && *str != ';'; str++) { in parse_slub_debug_flags()
1330 switch (tolower(*str)) { in parse_slub_debug_flags()
1361 pr_err("slub_debug option '%c' unknown. skipped\n", *str); in parse_slub_debug_flags()
1365 if (*str == ',') in parse_slub_debug_flags()
1366 *slabs = ++str; in parse_slub_debug_flags()
1371 while (*str && *str != ';') in parse_slub_debug_flags()
[all …]
Dusercopy.c295 static int __init parse_hardened_usercopy(char *str) in parse_hardened_usercopy() argument
297 if (strtobool(str, &enable_checks)) in parse_hardened_usercopy()
299 str); in parse_hardened_usercopy()
Dfailslab.c36 static int __init setup_failslab(char *str) in setup_failslab() argument
38 return setup_fault_attr(&failslab.attr, str); in setup_failslab()
Dmm_init.c134 static __init int set_mminit_loglevel(char *str) in set_mminit_loglevel() argument
136 get_option(&str, &mminit_loglevel); in set_mminit_loglevel()
Dkmemleak.c1712 static int dump_str_object_info(const char *str) in dump_str_object_info() argument
1718 if (kstrtoul(str, 0, &addr)) in dump_str_object_info()
1918 static int __init kmemleak_boot_config(char *str) in kmemleak_boot_config() argument
1920 if (!str) in kmemleak_boot_config()
1922 if (strcmp(str, "off") == 0) in kmemleak_boot_config()
1924 else if (strcmp(str, "on") == 0) in kmemleak_boot_config()
Dmempolicy.c2772 static int __init setup_numabalancing(char *str) in setup_numabalancing() argument
2775 if (!str) in setup_numabalancing()
2778 if (!strcmp(str, "enable")) { in setup_numabalancing()
2781 } else if (!strcmp(str, "disable")) { in setup_numabalancing()
2886 int mpol_parse_str(char *str, struct mempolicy **mpol) in mpol_parse_str() argument
2891 char *nodelist = strchr(str, ':'); in mpol_parse_str()
2892 char *flags = strchr(str, '='); in mpol_parse_str()
2908 mode = match_string(policy_modes, MPOL_MAX, str); in mpol_parse_str()
Dearly_ioremap.c24 static int __init early_ioremap_debug_setup(char *str) in early_ioremap_debug_setup() argument
Dpercpu.c2606 static int __init percpu_alloc_setup(char *str) in percpu_alloc_setup() argument
2608 if (!str) in percpu_alloc_setup()
2614 else if (!strcmp(str, "embed")) in percpu_alloc_setup()
2618 else if (!strcmp(str, "page")) in percpu_alloc_setup()
2622 pr_warn("unknown allocator %s specified\n", str); in percpu_alloc_setup()
Dioremap.c24 static int __init set_nohugeiomap(char *str) in set_nohugeiomap() argument
Dshmem.c487 static int shmem_parse_huge(const char *str) in shmem_parse_huge() argument
489 if (!strcmp(str, "never")) in shmem_parse_huge()
491 if (!strcmp(str, "always")) in shmem_parse_huge()
493 if (!strcmp(str, "within_size")) in shmem_parse_huge()
495 if (!strcmp(str, "advise")) in shmem_parse_huge()
497 if (!strcmp(str, "deny")) in shmem_parse_huge()
499 if (!strcmp(str, "force")) in shmem_parse_huge()
Dhuge_memory.c448 static int __init setup_transparent_hugepage(char *str) in setup_transparent_hugepage() argument
451 if (!str) in setup_transparent_hugepage()
453 if (!strcmp(str, "always")) { in setup_transparent_hugepage()
459 } else if (!strcmp(str, "madvise")) { in setup_transparent_hugepage()
465 } else if (!strcmp(str, "never")) { in setup_transparent_hugepage()
Dpage_alloc.c3681 static int __init setup_fail_page_alloc(char *str) in setup_fail_page_alloc() argument
3683 return setup_fault_attr(&fail_page_alloc.attr, str); in setup_fail_page_alloc()
7936 void __init mem_init_print_info(const char *str) in mem_init_print_info() argument
7985 str ? ", " : "", str ? str : ""); in mem_init_print_info()
8032 static int __init set_hashdist(char *str) in set_hashdist() argument
8034 if (!str) in set_hashdist()
8036 hashdist = simple_strtoul(str, &str, 0); in set_hashdist()
Dmemblock.c1908 static int __init early_memblock_nomap(char *str) in early_memblock_nomap() argument
1910 return kstrtobool(str, &memblock_nomap_remove); in early_memblock_nomap()
Dmemory_hotplug.c75 static int __init setup_memhp_default_state(char *str) in setup_memhp_default_state() argument
77 const int online_type = memhp_online_type_from_str(str); in setup_memhp_default_state()
Dslab_common.c69 static int __init setup_slab_nomerge(char *str) in setup_slab_nomerge() argument
Dvmscan.c186 static int __init kswapd_per_node_setup(char *str) in kswapd_per_node_setup() argument
190 if (kstrtoint(str, 0, &tmp) < 0) in kswapd_per_node_setup()
Dslab.c465 static int __init slab_max_order_setup(char *str) in slab_max_order_setup() argument
467 get_option(&str, &slab_max_order); in slab_max_order_setup()
Dmemory.c2775 static int __init allow_file_spec_access_setup(char *str) in allow_file_spec_access_setup() argument
/mm/damon/
Ddbgfs.c184 static struct damos **str_to_schemes(const char *str, ssize_t len, in str_to_schemes() argument
204 ret = sscanf(&str[pos], in str_to_schemes()
329 static unsigned long *str_to_target_ids(const char *str, ssize_t len, in str_to_target_ids() argument
342 ret = sscanf(&str[pos], "%lu%n", &id, &parsed); in str_to_target_ids()
521 static int set_init_regions(struct damon_ctx *c, const char *str, ssize_t len) in set_init_regions() argument
536 ret = sscanf(&str[pos], "%lu %lu %lu%n", in set_init_regions()
/mm/kasan/
Dreport.c55 static int __init kasan_set_multi_shot(char *str) in kasan_set_multi_shot() argument