/linux-6.1.9/scripts/coccinelle/api/ |
D | kstrdup.cocci | 2 /// Use kstrdup rather than duplicating its implementation 24 + to = kstrdup(from, flag); 39 + to = kstrdup(from, flag); 80 cocci.print_main("WARNING opportunity for kstrdup",p1) 88 cocci.print_main("WARNING opportunity for kstrdup",p1) 96 msg = "WARNING opportunity for kstrdup (strcpy on line %s)" % (p2[0].line) 104 msg = "WARNING opportunity for kstrdup (memcpy on line %s)" % (p2[0].line)
|
/linux-6.1.9/drivers/parport/ |
D | probe.c | 80 info->mfr = kstrdup(sep, GFP_KERNEL); in parse_data() 83 info->model = kstrdup(sep, GFP_KERNEL); in parse_data() 88 info->class_name = kstrdup(sep, GFP_KERNEL); in parse_data() 102 info->cmdset = kstrdup(sep, GFP_KERNEL); in parse_data() 109 info->description = kstrdup(sep, GFP_KERNEL); in parse_data()
|
/linux-6.1.9/net/sunrpc/xprtrdma/ |
D | transport.c | 163 xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses4() 175 xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses6() 198 xprt->address_strings[RPC_DISPLAY_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses() 201 xprt->address_strings[RPC_DISPLAY_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses() 204 xprt->address_strings[RPC_DISPLAY_HEX_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses() 412 xprt->address_strings[RPC_DISPLAY_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_set_port() 416 xprt->address_strings[RPC_DISPLAY_HEX_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_set_port()
|
/linux-6.1.9/fs/ksmbd/mgmt/ |
D | share_config.c | 108 p->pattern = kstrdup(veto_list, GFP_KERNEL); in parse_veto_list() 158 share->name = kstrdup(name, GFP_KERNEL); in share_config_request() 161 share->path = kstrdup(ksmbd_share_config_path(resp), in share_config_request()
|
D | user_config.c | 38 user->name = kstrdup(resp->account, GFP_KERNEL); in ksmbd_alloc_user()
|
/linux-6.1.9/arch/arm/mach-mvebu/ |
D | board-v7.c | 129 new_compat->name = kstrdup("compatible", GFP_KERNEL); in i2c_quirk() 131 new_compat->value = kstrdup("marvell,mv78230-a0-i2c", in i2c_quirk()
|
/linux-6.1.9/arch/arm/mach-versatile/ |
D | versatile.c | 149 newprop->name = kstrdup("status", GFP_KERNEL); in versatile_dt_pci_init() 150 newprop->value = kstrdup("disabled", GFP_KERNEL); in versatile_dt_pci_init()
|
/linux-6.1.9/fs/cifs/ |
D | fs_context.c | 298 new_ctx->field = kstrdup(ctx->field, GFP_ATOMIC); \ 413 orig = opts = kstrdup(options, GFP_KERNEL); in smb3_parse_opt() 429 *val = kstrdup(nval, GFP_KERNEL); in smb3_parse_opt() 472 return kstrdup(path, GFP_KERNEL); in sanitize_path() 579 ctx->mount_options = kstrdup(data, GFP_KERNEL); in smb3_fs_context_parse_monolithic() 1140 ctx->source = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param() 1145 fc->source = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param() 1165 ctx->username = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param() 1177 ctx->password = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param() 1204 ctx->domainname = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param() [all …]
|
D | unc.c | 64 dst = kstrdup(delim, GFP_KERNEL); in extract_sharename()
|
D | dfs_cache.c | 212 npath = kstrdup(path, GFP_KERNEL); in dfs_cache_canonical_path() 477 t->name = kstrdup(name, GFP_ATOMIC); in alloc_target() 742 th = kstrdup(s, GFP_ATOMIC); in update_cache_entry_locked() 857 ref->path_name = kstrdup(path, GFP_ATOMIC); in setup_referral() 861 ref->node_name = kstrdup(target, GFP_ATOMIC); in setup_referral() 899 it->it_name = kstrdup(t->name, GFP_ATOMIC); in get_targets() 1597 ref_paths[count++] = kstrdup(ce->path, GFP_ATOMIC); in refresh_cache()
|
/linux-6.1.9/fs/cachefiles/ |
D | daemon.c | 553 dir = kstrdup(args, GFP_KERNEL); in cachefiles_daemon_dir() 581 secctx = kstrdup(args, GFP_KERNEL); in cachefiles_daemon_secctx() 607 tag = kstrdup(args, GFP_KERNEL); in cachefiles_daemon_tag() 787 cache->tag = kstrdup("CacheFiles", GFP_KERNEL); in cachefiles_daemon_bind()
|
/linux-6.1.9/kernel/trace/ |
D | trace_boot.c | 432 tmp = kstrdup(buf, GFP_KERNEL); in trace_boot_init_histograms() 443 tmp = kstrdup(buf, GFP_KERNEL); in trace_boot_init_histograms() 567 q = kstrdup(p, GFP_KERNEL); in trace_boot_set_ftrace_filter() 577 q = kstrdup(p, GFP_KERNEL); in trace_boot_set_ftrace_filter()
|
D | fprobe.c | 193 str = kstrdup(filter, GFP_KERNEL); in register_fprobe() 201 str = kstrdup(notfilter, GFP_KERNEL); in register_fprobe()
|
D | trace_probe.c | 289 code->data = kstrdup(arg, GFP_KERNEL); in parse_probe_vars() 433 code->data = kstrdup(arg + 1, GFP_KERNEL); in parse_probe_arg() 572 arg = kstrdup(argv, GFP_KERNEL); in traceprobe_parse_probe_arg_body() 587 parg->comm = kstrdup(arg, GFP_KERNEL); in traceprobe_parse_probe_arg_body() 1056 call->name = kstrdup(event, GFP_KERNEL); in trace_probe_init() 1062 tp->event->class.system = kstrdup(group, GFP_KERNEL); in trace_probe_init()
|
/linux-6.1.9/drivers/video/fbdev/core/ |
D | fb_cmdline.c | 58 options = kstrdup(fb_mode_option, GFP_KERNEL); in fb_get_options()
|
/linux-6.1.9/arch/powerpc/platforms/pseries/ |
D | dlpar.c | 59 prop->name = kstrdup(name, GFP_KERNEL); in dlpar_parse_cc_property() 86 dn->full_name = kstrdup(name, GFP_KERNEL); in dlpar_parse_cc_node() 532 args = argbuf = kstrdup(buf, GFP_KERNEL); in dlpar_store()
|
/linux-6.1.9/drivers/platform/x86/ |
D | think-lmi.c | 276 s = kstrdup(obj->string.pointer, GFP_KERNEL); in tlmi_extract_output_string() 433 new_pwd = kstrdup(buf, GFP_KERNEL); in new_password_store() 706 passwd = kstrdup(buf, GFP_KERNEL); in cert_to_password_store() 762 new_cert = kstrdup(buf, GFP_KERNEL); in certificate_store() 814 new_signature = kstrdup(buf, GFP_KERNEL); in signature_store() 843 new_signature = kstrdup(buf, GFP_KERNEL); in save_signature_store() 962 new_setting = kstrdup(buf, GFP_KERNEL); in current_value_store() 1121 new_setting = kstrdup(buf, GFP_KERNEL); in debug_cmd_store()
|
/linux-6.1.9/drivers/regulator/ |
D | fixed-helper.c | 39 data->cfg.supply_name = kstrdup(name, GFP_KERNEL); in regulator_register_always_on()
|
/linux-6.1.9/fs/ksmbd/ |
D | transport_tcp.c | 513 iface = alloc_iface(kstrdup(netdev->name, GFP_KERNEL)); in ksmbd_netdev_event() 609 if (!alloc_iface(kstrdup(netdev->name, GFP_KERNEL))) in ksmbd_tcp_set_interfaces() 618 if (!alloc_iface(kstrdup(ifc_list, GFP_KERNEL))) in ksmbd_tcp_set_interfaces()
|
/linux-6.1.9/drivers/isdn/mISDN/ |
D | dsp_hwec.c | 57 dup = kstrdup(arg, GFP_ATOMIC); in dsp_hwec_enable()
|
/linux-6.1.9/tools/power/pm-graph/config/ |
D | cgskip.txt | 39 kstrdup
|
/linux-6.1.9/kernel/ |
D | kmod.c | 83 module_name = kstrdup(module_name, GFP_KERNEL); in call_modprobe()
|
/linux-6.1.9/fs/9p/ |
D | v9fs.c | 182 tmp_options = kstrdup(opts, GFP_KERNEL); in v9fs_parse_options() 395 v9ses->uname = kstrdup(V9FS_DEFUSER, GFP_KERNEL); in v9fs_session_init() 399 v9ses->aname = kstrdup(V9FS_DEFANAME, GFP_KERNEL); in v9fs_session_init()
|
/linux-6.1.9/lib/ |
D | string_helpers.c | 704 return kstrdup("<unknown>", gfp); in kstrdup_quotable_file() 709 return kstrdup("<no_memory>", gfp); in kstrdup_quotable_file() 713 pathname = kstrdup("<too_long>", gfp); in kstrdup_quotable_file()
|
/linux-6.1.9/drivers/soc/aspeed/ |
D | aspeed-socinfo.c | 127 attrs->machine = kstrdup(machine, GFP_KERNEL); in aspeed_socinfo_init()
|