/Linux-v6.6/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-v6.6/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-v6.6/net/sunrpc/xprtrdma/ |
D | transport.c | 154 xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses4() 166 xprt->address_strings[RPC_DISPLAY_HEX_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses6() 189 xprt->address_strings[RPC_DISPLAY_ADDR] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses() 192 xprt->address_strings[RPC_DISPLAY_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses() 195 xprt->address_strings[RPC_DISPLAY_HEX_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_format_addresses() 403 xprt->address_strings[RPC_DISPLAY_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_set_port() 407 xprt->address_strings[RPC_DISPLAY_HEX_PORT] = kstrdup(buf, GFP_KERNEL); in xprt_rdma_set_port()
|
/Linux-v6.6/fs/smb/server/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-v6.6/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-v6.6/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-v6.6/drivers/interconnect/ |
D | debugfs-client.c | 74 src = kstrdup(src, GFP_ATOMIC); in icc_get_set() 75 dst = kstrdup(dst, GFP_ATOMIC); in icc_get_set()
|
/Linux-v6.6/drivers/video/fbdev/core/ |
D | fb_cmdline.c | 54 *option = kstrdup(options, GFP_KERNEL); in fb_get_options()
|
/Linux-v6.6/fs/smb/client/ |
D | fs_context.c | 301 new_ctx->field = kstrdup(ctx->field, GFP_ATOMIC); \ 416 orig = opts = kstrdup(options, GFP_KERNEL); in smb3_parse_opt() 432 *val = kstrdup(nval, GFP_KERNEL); in smb3_parse_opt() 481 s = kstrdup(prepath, gfp); in cifs_sanitize_prepath() 1206 fc->source = kstrdup(ctx->source, GFP_KERNEL); in smb3_fs_context_parse_param() 1228 ctx->username = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param() 1240 ctx->password = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param() 1267 ctx->domainname = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param() 1291 ctx->iocharset = kstrdup(param->string, GFP_KERNEL); in smb3_fs_context_parse_param()
|
D | unc.c | 64 dst = kstrdup(delim, GFP_KERNEL); in extract_sharename()
|
D | dfs_cache.c | 100 npath = kstrdup(path, GFP_KERNEL); in dfs_cache_canonical_path() 368 t->name = kstrdup(name, GFP_ATOMIC); in alloc_target() 631 th = kstrdup(target->name, GFP_ATOMIC); in update_cache_entry_locked() 765 ref->path_name = kstrdup(path, GFP_ATOMIC); in setup_referral() 769 ref->node_name = kstrdup(target, GFP_ATOMIC); in setup_referral() 807 it->it_name = kstrdup(t->name, GFP_ATOMIC); in get_targets()
|
/Linux-v6.6/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-v6.6/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 | 258 str = kstrdup(filter, GFP_KERNEL); in register_fprobe() 266 str = kstrdup(notfilter, GFP_KERNEL); in register_fprobe()
|
/Linux-v6.6/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() 729 dst = kstrdup(src, gfp); in kstrdup_and_replace()
|
/Linux-v6.6/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() 523 args = argbuf = kstrdup(buf, GFP_KERNEL); in dlpar_store()
|
/Linux-v6.6/drivers/platform/x86/ |
D | think-lmi.c | 278 s = kstrdup(obj->string.pointer, GFP_KERNEL); in tlmi_extract_output_string() 435 new_pwd = kstrdup(buf, GFP_KERNEL); in new_password_store() 712 passwd = kstrdup(buf, GFP_KERNEL); in cert_to_password_store() 768 new_cert = kstrdup(buf, GFP_KERNEL); in certificate_store() 820 new_signature = kstrdup(buf, GFP_KERNEL); in signature_store() 849 new_signature = kstrdup(buf, GFP_KERNEL); in save_signature_store() 988 new_setting = kstrdup(buf, GFP_KERNEL); in current_value_store() 1166 new_setting = kstrdup(buf, GFP_KERNEL); in debug_cmd_store()
|
/Linux-v6.6/drivers/regulator/ |
D | fixed-helper.c | 39 data->cfg.supply_name = kstrdup(name, GFP_KERNEL); in regulator_register_always_on()
|
/Linux-v6.6/fs/smb/server/ |
D | transport_tcp.c | 524 iface = alloc_iface(kstrdup(netdev->name, GFP_KERNEL)); in ksmbd_netdev_event() 620 if (!alloc_iface(kstrdup(netdev->name, GFP_KERNEL))) in ksmbd_tcp_set_interfaces() 629 if (!alloc_iface(kstrdup(ifc_list, GFP_KERNEL))) in ksmbd_tcp_set_interfaces()
|
/Linux-v6.6/fs/overlayfs/ |
D | params.c | 274 char *tmp = kstrdup(name, GFP_KERNEL); in ovl_mount_dir() 315 dup = kstrdup(name, GFP_KERNEL); in ovl_parse_param_upperdir() 379 dup = kstrdup(name, GFP_KERNEL); in ovl_parse_param_lowerdir() 463 l->name = kstrdup(dup_iter, GFP_KERNEL_ACCOUNT); in ovl_parse_param_lowerdir()
|
/Linux-v6.6/tools/power/pm-graph/config/ |
D | cgskip.txt | 39 kstrdup
|
/Linux-v6.6/drivers/isdn/mISDN/ |
D | dsp_hwec.c | 57 dup = kstrdup(arg, GFP_ATOMIC); in dsp_hwec_enable()
|
/Linux-v6.6/fs/9p/ |
D | v9fs.c | 184 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-v6.6/kernel/module/ |
D | kmod.c | 88 module_name = kstrdup(orig_module_name, GFP_KERNEL); in call_modprobe()
|