/linux/scripts/coccinelle/api/ |
H A 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/drivers/parport/ |
H A 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/net/ethtool/ |
H A D | phy.c | 91 rep_data->name = kstrdup(dev_name(&phydev->mdio.dev), GFP_KERNEL); in phy_prepare_data() 92 rep_data->drvname = kstrdup(phydev->drv->name, GFP_KERNEL); in phy_prepare_data() 101 rep_data->upstream_sfp_name = kstrdup(sfp_get_name(pdn->parent_sfp_bus), in phy_prepare_data() 105 rep_data->downstream_sfp_name = kstrdup(sfp_get_name(phydev->sfp_bus), in phy_prepare_data()
|
/linux/arch/arm/mach-versatile/ |
H A 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/drivers/interconnect/ |
H A 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/arch/arm/mach-mvebu/ |
H A 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/drivers/video/fbdev/core/ |
H A D | fb_cmdline.c | 54 *option = kstrdup(options, GFP_KERNEL); in fb_get_options()
|
/linux/lib/ |
H A D | string_helpers.c | 717 return kstrdup("<unknown>", gfp); in kstrdup_quotable_file() 722 return kstrdup("<no_memory>", gfp); in kstrdup_quotable_file() 726 pathname = kstrdup("<too_long>", gfp); in kstrdup_quotable_file() 742 dst = kstrdup(src, gfp); in kstrdup_and_replace()
|
/linux/kernel/trace/ |
H A 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()
|
/linux/fs/smb/client/ |
H A D | unc.c | 64 dst = kstrdup(delim, GFP_KERNEL); in extract_sharename()
|
H A D | dfs_cache.c | 100 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()
|
H A D | fs_context.c | 424 new_ctx->field = kstrdup(ctx->field, GFP_ATOMIC); \ 545 orig = opts = kstrdup(options, GFP_KERNEL); in smb3_parse_opt() 561 *val = kstrdup(nval, GFP_KERNEL); in smb3_parse_opt() 579 * @gfp indicates the GFP_* flags for kstrdup. 610 s = kstrdup(prepath, gfp); in cifs_sanitize_prepath() 1000 cifs_sb->ctx->password = kstrdup(ses->password, GFP_KERNEL); in smb3_sync_session_ctx_passwords() 1008 cifs_sb->ctx->password2 = kstrdup(ses->password2, GFP_KERNEL); in smb3_sync_session_ctx_passwords() 1050 new_password = kstrdup(ctx->password, GFP_KERNEL); in smb3_reconfigure() 1062 new_password2 = kstrdup(ctx->password2, GFP_KERNEL); in smb3_reconfigure() 1446 fc->source = kstrdup(ct in smb3_fs_context_parse_param() [all...] |
/linux/drivers/staging/media/atomisp/pci/ |
H A D | atomisp_csi2_bridge.c | 124 val = kstrdup(val_el->string.pointer, GFP_KERNEL); in gmin_cfg_get_dsm() 156 return kstrdup(gv->val, GFP_KERNEL); in gmin_cfg_get_dmi_override() 346 vcm_type = kstrdup(obj->string.pointer, GFP_KERNEL); in atomisp_csi2_get_vcm_type()
|
/linux/drivers/isdn/mISDN/ |
H A D | dsp_hwec.c | 57 dup = kstrdup(arg, GFP_ATOMIC); in dsp_hwec_enable()
|
/linux/drivers/gpu/drm/ |
H A D | drm_edid_load.c | 72 fwstr = kstrdup(edid_firmware, GFP_KERNEL); in drm_edid_load_firmware()
|
/linux/tools/power/pm-graph/config/ |
H A D | cgskip.txt | 39 kstrdup
|
/linux/fs/9p/ |
H A 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/arch/loongarch/kernel/ |
H A D | env.c | 51 cpuname = kstrdup(model, GFP_KERNEL); in init_cpu_fullname()
|
/linux/kernel/module/ |
H A D | kmod.c | 87 module_name = kstrdup(orig_module_name, GFP_KERNEL); in call_modprobe()
|
/linux/sound/core/ |
H A D | info_oss.c | 38 x = kstrdup(string, GFP_KERNEL); in snd_oss_info_register()
|
/linux/drivers/soc/aspeed/ |
H A D | aspeed-socinfo.c | 127 attrs->machine = kstrdup(machine, GFP_KERNEL); in aspeed_socinfo_init()
|
/linux/drivers/gpu/drm/i915/ |
H A D | i915_mitigations.c | 39 str = kstrdup(val, GFP_KERNEL); in mitigations_set()
|
/linux/drivers/pci/hotplug/ |
H A D | rpaphp_slot.c | 38 slot->name = kstrdup(drc_name, GFP_KERNEL); in alloc_slot_struct()
|
/linux/lib/kunit/ |
H A D | executor.c | 92 parsed->suite_glob = kstrdup(filter_glob, GFP_KERNEL); in kunit_parse_glob_filter() 103 parsed->test_glob = kstrdup(period + 1, GFP_KERNEL); in kunit_parse_glob_filter()
|
/linux/drivers/mtd/parsers/ |
H A D | afs.c | 201 part->name = kstrdup(iis.name, GFP_KERNEL); in afs_parse_v1_partition() 312 part->name = kstrdup(name, GFP_KERNEL); in afs_parse_v2_partition()
|