Home
last modified time | relevance | path

Searched refs:kstrndup (Results 1 – 25 of 75) sorted by relevance

123

/Linux-v5.10/fs/cifs/
Ddfs_cache.c90 *npath = kstrndup(path, strlen(path), GFP_KERNEL); in get_normalized_path()
361 t->name = kstrndup(name, strlen(name), GFP_ATOMIC); in alloc_target()
421 ce->path = kstrndup(path, strlen(path), GFP_KERNEL); in alloc_cache_entry()
533 npath = kstrndup(path, strlen(path), GFP_KERNEL); in lookup_cache_entry()
643 th = kstrndup(s, strlen(s), GFP_ATOMIC); in __update_cache_entry()
788 ref->path_name = kstrndup(path, strlen(path), GFP_ATOMIC); in setup_referral()
792 ref->node_name = kstrndup(target, strlen(target), GFP_ATOMIC); in setup_referral()
829 it->it_name = kstrndup(t->name, strlen(t->name), GFP_ATOMIC); in get_targets()
1148 new->username = kstrndup(vol->username, strlen(vol->username), in dup_vol()
1154 new->password = kstrndup(vol->password, strlen(vol->password), in dup_vol()
[all …]
Dcache.c73 dst = kstrndup(delim, len, GFP_KERNEL); in extract_sharename()
Dcifs_dfs_ref.c272 devname = kstrndup(fullpath, strlen(fullpath), GFP_KERNEL); in cifs_dfs_do_mount()
/Linux-v5.10/drivers/md/
Ddm-init.c143 dev->target_args_array[n] = kstrndup(field[3], DM_MAX_STR_SIZE, in dm_parse_table_entry()
278 str = kstrndup(create, DM_MAX_STR_SIZE, GFP_KERNEL); in dm_init_init()
/Linux-v5.10/lib/
Dargv_split.c67 argv_str = kstrndup(str, KMALLOC_MAX_SIZE - 1, gfp); in argv_split()
Dtest_firmware.c176 *dst = kstrndup(name, count, gfp); in __kstrncpy()
584 name = kstrndup(buf, count, GFP_KERNEL); in trigger_request_store()
630 name = kstrndup(buf, count, GFP_KERNEL); in trigger_request_platform_store()
683 name = kstrndup(buf, count, GFP_KERNEL); in trigger_async_request_store()
726 name = kstrndup(buf, count, GFP_KERNEL); in trigger_custom_fallback_store()
/Linux-v5.10/arch/powerpc/platforms/pseries/
Dof_helpers.c32 parent_path = kstrndup(path, tail - path, GFP_KERNEL); in pseries_of_derive_parent()
/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/core/
Doption.c84 if (optstr && (s = kstrndup(optstr, arglen, GFP_KERNEL))) { in nvkm_longopt()
/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/nvfw/
Dls.c39 date = kstrndup(hdr->date, sizeof(hdr->date), GFP_KERNEL); in nvfw_ls_desc_head()
/Linux-v5.10/drivers/cdrom/
Dgdrom.c663 model_name = kstrndup(id->modname, 16, GFP_KERNEL); in gdrom_outputversion()
666 manuf_name = kstrndup(id->mname, 16, GFP_KERNEL); in gdrom_outputversion()
669 firmw_ver = kstrndup(id->firmver, 16, GFP_KERNEL); in gdrom_outputversion()
/Linux-v5.10/drivers/mtd/maps/
Dpmcmsp-flash.c142 msp_maps[i].name = kstrndup(flash_name, 7, GFP_KERNEL); in init_msp_flash()
/Linux-v5.10/drivers/remoteproc/
Dremoteproc_sysfs.c179 p = kstrndup(buf, len, GFP_KERNEL); in firmware_store()
/Linux-v5.10/drivers/thunderbolt/
Deeprom.c318 sw->vendor_name = kstrndup(entry->data, in tb_drom_parse_entry_generic()
325 sw->device_name = kstrndup(entry->data, in tb_drom_parse_entry_generic()
/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dshadow.c187 source = optarg ? kstrndup(optarg, optlen, GFP_KERNEL) : NULL; in nvbios_shadow()
/Linux-v5.10/net/wimax/
Dop-msg.c357 pipe_name = kstrndup(nla_data(attr), attr_len + 1, GFP_KERNEL); in wimax_gnl_doit_msg_from_user()
/Linux-v5.10/kernel/power/
Dwakelock.c185 wl->name = kstrndup(name, len, GFP_KERNEL); in wakelock_lookup_add()
/Linux-v5.10/drivers/staging/greybus/
Dpower_supply.c489 gbpsy->manufacturer = kstrndup(resp.manufacturer, PROP_MAX, GFP_KERNEL); in gb_power_supply_description_get()
492 gbpsy->model_name = kstrndup(resp.model, PROP_MAX, GFP_KERNEL); in gb_power_supply_description_get()
495 gbpsy->serial_number = kstrndup(resp.serial_number, PROP_MAX, in gb_power_supply_description_get()
Dlight.c966 channel->color_name = kstrndup(conf.color_name, NAMES_MAX, GFP_KERNEL); in gb_lights_channel_config()
969 channel->mode_name = kstrndup(conf.mode_name, NAMES_MAX, GFP_KERNEL); in gb_lights_channel_config()
1028 light->name = kstrndup(conf.name, NAMES_MAX, GFP_KERNEL); in gb_lights_light_config()
/Linux-v5.10/mm/
Dvmpressure.c373 spec_orig = spec = kstrndup(args, MAX_VMPRESSURE_ARGS_LEN, GFP_KERNEL); in vmpressure_register_event()
Dutil.c97 char *kstrndup(const char *s, size_t max, gfp_t gfp) in kstrndup() function
113 EXPORT_SYMBOL(kstrndup);
/Linux-v5.10/drivers/vfio/mdev/
Dmdev_sysfs.c61 str = kstrndup(buf, count, GFP_KERNEL); in create_store()
/Linux-v5.10/drivers/firmware/google/
Dvpd.c114 info->key = kstrndup(key, key_len, GFP_KERNEL); in vpd_section_attrib_add()
/Linux-v5.10/drivers/pci/endpoint/
Dpci-epf-core.c257 epf->name = kstrndup(name, len, GFP_KERNEL); in pci_epf_create()
/Linux-v5.10/drivers/nvdimm/
Dclaim.c147 name = kstrndup(buf, len, GFP_KERNEL); in nd_namespace_store()
/Linux-v5.10/drivers/rpmsg/
Drpmsg_core.c337 new = kstrndup(buf, sz, GFP_KERNEL); \

123