Home
last modified time | relevance | path

Searched refs:kstrdup (Results 1 – 25 of 319) sorted by relevance

12345678910>>...13

/Linux-v5.15/scripts/coccinelle/api/
Dkstrdup.cocci2 /// 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-v5.15/drivers/parport/
Dprobe.c80 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-v5.15/net/sunrpc/xprtrdma/
Dtransport.c167 xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses4()
179 xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses6()
202 xprt->address_strings[RPC_DISPLAY_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses()
205 xprt->address_strings[RPC_DISPLAY_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses()
208 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-v5.15/fs/ksmbd/mgmt/
Dshare_config.c103 p->pattern = kstrdup(veto_list, GFP_KERNEL); in parse_veto_list()
139 share->name = kstrdup(name, GFP_KERNEL); in share_config_request()
142 share->path = kstrdup(ksmbd_share_config_path(resp), in share_config_request()
Duser_config.c38 user->name = kstrdup(resp->account, GFP_KERNEL); in ksmbd_alloc_user()
/Linux-v5.15/arch/arm/mach-mvebu/
Dboard-v7.c132 new_compat->name = kstrdup("compatible", GFP_KERNEL); in i2c_quirk()
134 new_compat->value = kstrdup("marvell,mv78230-a0-i2c", in i2c_quirk()
/Linux-v5.15/arch/arm/mach-versatile/
Dversatile_dt.c149 newprop->name = kstrdup("status", GFP_KERNEL); in versatile_dt_pci_init()
150 newprop->value = kstrdup("disabled", GFP_KERNEL); in versatile_dt_pci_init()
/Linux-v5.15/fs/cifs/
Dfs_context.c293 new_ctx->field = kstrdup(ctx->field, GFP_ATOMIC); \
406 orig = opts = kstrdup(options, GFP_KERNEL); in smb3_parse_opt()
422 *val = kstrdup(nval, GFP_KERNEL); in smb3_parse_opt()
485 ctx->prepath = kstrdup(pos, GFP_KERNEL); in smb3_parse_devname()
530 ctx->mount_options = kstrdup(data, GFP_KERNEL); in smb3_fs_context_parse_monolithic()
1065 ctx->source = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param()
1070 fc->source = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param()
1090 ctx->username = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param()
1102 ctx->password = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param()
1129 ctx->domainname = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param()
[all …]
Dunc.c64 dst = kstrdup(delim, GFP_KERNEL); in extract_sharename()
Dcifs_dfs_ref.c280 devname = kstrdup(fullpath, GFP_KERNEL); in cifs_dfs_do_mount()
358 root_path = kstrdup(tcon->treeName, GFP_KERNEL); in cifs_dfs_do_automount()
/Linux-v5.15/lib/
Dstring_helpers.c659 return kstrdup("<unknown>", gfp); in kstrdup_quotable_file()
664 return kstrdup("<no_memory>", gfp); in kstrdup_quotable_file()
668 pathname = kstrdup("<too_long>", gfp); in kstrdup_quotable_file()
/Linux-v5.15/fs/ksmbd/
Dmisc.c168 ab_pathname = kstrdup(filename, GFP_KERNEL); in convert_to_nt_pathname()
223 dst = kstrdup(name, GFP_KERNEL); in ksmbd_extract_sharename()
Dtransport_tcp.c493 iface = alloc_iface(kstrdup(netdev->name, GFP_KERNEL)); in ksmbd_netdev_event()
589 if (!alloc_iface(kstrdup(netdev->name, GFP_KERNEL))) in ksmbd_tcp_set_interfaces()
598 if (!alloc_iface(kstrdup(ifc_list, GFP_KERNEL))) in ksmbd_tcp_set_interfaces()
/Linux-v5.15/kernel/trace/
Dtrace_boot.c432 tmp = kstrdup(buf, GFP_KERNEL); in trace_boot_init_histograms()
441 tmp = kstrdup(buf, GFP_KERNEL); in trace_boot_init_histograms()
563 q = kstrdup(p, GFP_KERNEL); in trace_boot_set_ftrace_filter()
573 q = kstrdup(p, GFP_KERNEL); in trace_boot_set_ftrace_filter()
Dtrace_probe.c325 code->data = kstrdup(arg, GFP_KERNEL); in parse_probe_vars()
422 code->data = kstrdup(arg + 1, GFP_KERNEL); in parse_probe_arg()
561 arg = kstrdup(argv, GFP_KERNEL); in traceprobe_parse_probe_arg_body()
576 parg->comm = kstrdup(arg, GFP_KERNEL); in traceprobe_parse_probe_arg_body()
1043 call->name = kstrdup(event, GFP_KERNEL); in trace_probe_init()
1049 tp->event->class.system = kstrdup(group, GFP_KERNEL); in trace_probe_init()
/Linux-v5.15/sound/isa/gus/
Dgus_mem.c201 block.name = kstrdup(name, GFP_KERNEL); in snd_gf1_mem_alloc()
239 block.name = kstrdup("InterWave LFOs", GFP_KERNEL); in snd_gf1_mem_init()
245 block.name = kstrdup("Voice default (NULL's)", GFP_KERNEL); in snd_gf1_mem_init()
/Linux-v5.15/drivers/video/fbdev/core/
Dfb_cmdline.c58 options = kstrdup(fb_mode_option, GFP_KERNEL); in fb_get_options()
/Linux-v5.15/arch/powerpc/platforms/pseries/
Ddlpar.c60 prop->name = kstrdup(name, GFP_KERNEL); in dlpar_parse_cc_property()
87 dn->full_name = kstrdup(name, GFP_KERNEL); in dlpar_parse_cc_node()
533 args = argbuf = kstrdup(buf, GFP_KERNEL); in dlpar_store()
/Linux-v5.15/drivers/regulator/
Dfixed-helper.c39 data->cfg.supply_name = kstrdup(name, GFP_KERNEL); in regulator_register_always_on()
/Linux-v5.15/drivers/misc/lkdtm/
Dfortify.c83 src = kstrdup("foobar", GFP_KERNEL); in lkdtm_FORTIFIED_STRSCPY()
/Linux-v5.15/fs/cachefiles/
Ddaemon.c484 dir = kstrdup(args, GFP_KERNEL); in cachefiles_daemon_dir()
512 secctx = kstrdup(args, GFP_KERNEL); in cachefiles_daemon_secctx()
538 tag = kstrdup(args, GFP_KERNEL); in cachefiles_daemon_tag()
/Linux-v5.15/tools/power/pm-graph/config/
Dcgskip.txt39 kstrdup
/Linux-v5.15/drivers/isdn/mISDN/
Ddsp_hwec.c57 dup = kstrdup(arg, GFP_ATOMIC); in dsp_hwec_enable()
/Linux-v5.15/kernel/
Dkmod.c83 module_name = kstrdup(module_name, GFP_KERNEL); in call_modprobe()
/Linux-v5.15/fs/9p/
Dv9fs.c184 tmp_options = kstrdup(opts, GFP_KERNEL); in v9fs_parse_options()
394 v9ses->uname = kstrdup(V9FS_DEFUSER, GFP_KERNEL); in v9fs_session_init()
398 v9ses->aname = kstrdup(V9FS_DEFANAME, GFP_KERNEL); in v9fs_session_init()

12345678910>>...13