Home
last modified time | relevance | path

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

12345678910>>...15

/linux-6.12.1/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-6.12.1/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-6.12.1/net/sunrpc/xprtrdma/
Dtransport.c153 xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses4()
165 xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses6()
188 xprt->address_strings[RPC_DISPLAY_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses()
191 xprt->address_strings[RPC_DISPLAY_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses()
194 xprt->address_strings[RPC_DISPLAY_HEX_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses()
402 xprt->address_strings[RPC_DISPLAY_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_set_port()
406 xprt->address_strings[RPC_DISPLAY_HEX_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_set_port()
/linux-6.12.1/arch/arm/mach-versatile/
Dversatile.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-6.12.1/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-6.12.1/drivers/interconnect/
Ddebugfs-client.c74 src = kstrdup(src, GFP_ATOMIC); in icc_get_set()
75 dst = kstrdup(dst, GFP_ATOMIC); in icc_get_set()
/linux-6.12.1/fs/smb/client/
Dfs_context.c335 new_ctx->field = kstrdup(ctx->field, GFP_ATOMIC); \
452 orig = opts = kstrdup(options, GFP_KERNEL); in smb3_parse_opt()
468 *val = kstrdup(nval, GFP_KERNEL); in smb3_parse_opt()
517 s = kstrdup(prepath, gfp); in cifs_sanitize_prepath()
922 ses->password = kstrdup(ctx->password, GFP_KERNEL); in smb3_reconfigure()
926 ses->password2 = kstrdup(ctx->password2, GFP_KERNEL); in smb3_reconfigure()
1280 fc->source = kstrdup(ctx->source, GFP_KERNEL); in smb3_fs_context_parse_param()
1302 ctx->username = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param()
1314 ctx->password = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param()
1326 ctx->password2 = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param()
[all …]
Ddfs_cache.c100 npath = kstrdup(path, GFP_KERNEL); in dfs_cache_canonical_path()
369 t->name = kstrdup(name, GFP_ATOMIC); in alloc_target()
629 th = kstrdup(target->name, GFP_ATOMIC); in update_cache_entry_locked()
763 ref->path_name = kstrdup(path, GFP_ATOMIC); in setup_referral()
767 ref->node_name = kstrdup(target, GFP_ATOMIC); in setup_referral()
805 it->it_name = kstrdup(t->name, GFP_ATOMIC); in get_targets()
1154 path = kstrdup(server->leaf_fullpath + 1, GFP_ATOMIC); in get_ses_refpath()
Dunc.c64 dst = kstrdup(delim, GFP_KERNEL); in extract_sharename()
/linux-6.12.1/drivers/video/fbdev/core/
Dfb_cmdline.c54 *option = kstrdup(options, GFP_KERNEL); in fb_get_options()
/linux-6.12.1/kernel/trace/
Dtrace_boot.c432 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()
Dfprobe.c248 str = kstrdup(filter, GFP_KERNEL); in register_fprobe()
256 str = kstrdup(notfilter, GFP_KERNEL); in register_fprobe()
/linux-6.12.1/fs/cachefiles/
Ddaemon.c565 dir = kstrdup(args, GFP_KERNEL); in cachefiles_daemon_dir()
593 secctx = kstrdup(args, GFP_KERNEL); in cachefiles_daemon_secctx()
619 tag = kstrdup(args, GFP_KERNEL); in cachefiles_daemon_tag()
799 cache->tag = kstrdup("CacheFiles", GFP_KERNEL); in cachefiles_daemon_bind()
/linux-6.12.1/lib/
Dstring_helpers.c714 return kstrdup("<unknown>", gfp); in kstrdup_quotable_file()
719 return kstrdup("<no_memory>", gfp); in kstrdup_quotable_file()
723 pathname = kstrdup("<too_long>", gfp); in kstrdup_quotable_file()
739 dst = kstrdup(src, gfp); in kstrdup_and_replace()
/linux-6.12.1/fs/smb/server/mgmt/
Dshare_config.c109 p->pattern = kstrdup(veto_list, GFP_KERNEL); in parse_veto_list()
160 share->name = kstrdup(name, GFP_KERNEL); in share_config_request()
/linux-6.12.1/fs/smb/server/
Dtransport_tcp.c531 iface = alloc_iface(kstrdup(netdev->name, GFP_KERNEL)); in ksmbd_netdev_event()
627 if (!alloc_iface(kstrdup(netdev->name, GFP_KERNEL))) { in ksmbd_tcp_set_interfaces()
638 if (!alloc_iface(kstrdup(ifc_list, GFP_KERNEL))) in ksmbd_tcp_set_interfaces()
/linux-6.12.1/drivers/gpu/drm/
Ddrm_edid_load.c72 fwstr = kstrdup(edid_firmware, GFP_KERNEL); in drm_edid_load_firmware()
/linux-6.12.1/drivers/isdn/mISDN/
Ddsp_hwec.c57 dup = kstrdup(arg, GFP_ATOMIC); in dsp_hwec_enable()
/linux-6.12.1/tools/power/pm-graph/config/
Dcgskip.txt39 kstrdup
/linux-6.12.1/fs/9p/
Dv9fs.c184 tmp_options = kstrdup(opts, GFP_KERNEL); in v9fs_parse_options()
397 v9ses->uname = kstrdup(V9FS_DEFUSER, GFP_KERNEL); in v9fs_session_init()
401 v9ses->aname = kstrdup(V9FS_DEFANAME, GFP_KERNEL); in v9fs_session_init()
/linux-6.12.1/kernel/module/
Dkmod.c88 module_name = kstrdup(orig_module_name, GFP_KERNEL); in call_modprobe()
/linux-6.12.1/sound/core/
Dinfo_oss.c38 x = kstrdup(string, GFP_KERNEL); in snd_oss_info_register()
/linux-6.12.1/drivers/soc/aspeed/
Daspeed-socinfo.c127 attrs->machine = kstrdup(machine, GFP_KERNEL); in aspeed_socinfo_init()
/linux-6.12.1/drivers/gpu/drm/i915/
Di915_mitigations.c39 str = kstrdup(val, GFP_KERNEL); in mitigations_set()
/linux-6.12.1/drivers/gpu/drm/msm/
Dmsm_gpu.c277 state->comm = kstrdup(comm, GFP_KERNEL); in msm_gpu_crashstate_capture()
278 state->cmd = kstrdup(cmd, GFP_KERNEL); in msm_gpu_crashstate_capture()
339 *comm = kstrdup(ctx->comm, GFP_KERNEL); in get_comm_cmdline()
340 *cmd = kstrdup(ctx->cmdline, GFP_KERNEL); in get_comm_cmdline()
347 *comm = kstrdup(task->comm, GFP_KERNEL); in get_comm_cmdline()

12345678910>>...15