/Linux-v5.15/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-v5.15/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-v5.15/net/sunrpc/xprtrdma/ |
D | transport.c | 167 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/ |
D | share_config.c | 103 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()
|
D | user_config.c | 38 user->name = kstrdup(resp->account, GFP_KERNEL); in ksmbd_alloc_user()
|
/Linux-v5.15/arch/arm/mach-mvebu/ |
D | board-v7.c | 132 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/ |
D | versatile_dt.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-v5.15/fs/cifs/ |
D | fs_context.c | 293 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 …]
|
D | unc.c | 64 dst = kstrdup(delim, GFP_KERNEL); in extract_sharename()
|
D | cifs_dfs_ref.c | 280 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/ |
D | string_helpers.c | 659 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/ |
D | misc.c | 168 ab_pathname = kstrdup(filename, GFP_KERNEL); in convert_to_nt_pathname() 223 dst = kstrdup(name, GFP_KERNEL); in ksmbd_extract_sharename()
|
D | transport_tcp.c | 493 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/ |
D | trace_boot.c | 432 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()
|
D | trace_probe.c | 325 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/ |
D | gus_mem.c | 201 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/ |
D | fb_cmdline.c | 58 options = kstrdup(fb_mode_option, GFP_KERNEL); in fb_get_options()
|
/Linux-v5.15/arch/powerpc/platforms/pseries/ |
D | dlpar.c | 60 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/ |
D | fixed-helper.c | 39 data->cfg.supply_name = kstrdup(name, GFP_KERNEL); in regulator_register_always_on()
|
/Linux-v5.15/drivers/misc/lkdtm/ |
D | fortify.c | 83 src = kstrdup("foobar", GFP_KERNEL); in lkdtm_FORTIFIED_STRSCPY()
|
/Linux-v5.15/fs/cachefiles/ |
D | daemon.c | 484 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/ |
D | cgskip.txt | 39 kstrdup
|
/Linux-v5.15/drivers/isdn/mISDN/ |
D | dsp_hwec.c | 57 dup = kstrdup(arg, GFP_ATOMIC); in dsp_hwec_enable()
|
/Linux-v5.15/kernel/ |
D | kmod.c | 83 module_name = kstrdup(module_name, GFP_KERNEL); in call_modprobe()
|
/Linux-v5.15/fs/9p/ |
D | v9fs.c | 184 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()
|