Home
last modified time | relevance | path

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

12345678910>>...14

/linux-6.1.9/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.1.9/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.1.9/net/sunrpc/xprtrdma/
Dtransport.c163 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/
Dshare_config.c108 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()
Duser_config.c38 user->name = kstrdup(resp->account, GFP_KERNEL); in ksmbd_alloc_user()
/linux-6.1.9/arch/arm/mach-mvebu/
Dboard-v7.c129 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/
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.1.9/fs/cifs/
Dfs_context.c298 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 …]
Dunc.c64 dst = kstrdup(delim, GFP_KERNEL); in extract_sharename()
Ddfs_cache.c212 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/
Ddaemon.c553 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/
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.c193 str = kstrdup(filter, GFP_KERNEL); in register_fprobe()
201 str = kstrdup(notfilter, GFP_KERNEL); in register_fprobe()
Dtrace_probe.c289 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/
Dfb_cmdline.c58 options = kstrdup(fb_mode_option, GFP_KERNEL); in fb_get_options()
/linux-6.1.9/arch/powerpc/platforms/pseries/
Ddlpar.c59 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/
Dthink-lmi.c276 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/
Dfixed-helper.c39 data->cfg.supply_name = kstrdup(name, GFP_KERNEL); in regulator_register_always_on()
/linux-6.1.9/fs/ksmbd/
Dtransport_tcp.c513 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/
Ddsp_hwec.c57 dup = kstrdup(arg, GFP_ATOMIC); in dsp_hwec_enable()
/linux-6.1.9/tools/power/pm-graph/config/
Dcgskip.txt39 kstrdup
/linux-6.1.9/kernel/
Dkmod.c83 module_name = kstrdup(module_name, GFP_KERNEL); in call_modprobe()
/linux-6.1.9/fs/9p/
Dv9fs.c182 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/
Dstring_helpers.c704 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/
Daspeed-socinfo.c127 attrs->machine = kstrdup(machine, GFP_KERNEL); in aspeed_socinfo_init()

12345678910>>...14