Home
last modified time | relevance | path

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

/linux-4.4.14/net/irda/
Dirias_object.c59 obj->name = kstrndup(name, IAS_MAX_CLASSNAME, GFP_ATOMIC); in irias_new_object()
329 attrib->name = kstrndup(name, IAS_MAX_ATTRIBNAME, GFP_ATOMIC); in irias_add_integer_attrib()
373 attrib->name = kstrndup(name, IAS_MAX_ATTRIBNAME, GFP_ATOMIC); in irias_add_octseq_attrib()
415 attrib->name = kstrndup(name, IAS_MAX_ATTRIBNAME, GFP_ATOMIC); in irias_add_string_attrib()
471 value->t.string = kstrndup(string, IAS_MAX_STRING, GFP_ATOMIC); in irias_new_string_value()
/linux-4.4.14/arch/powerpc/platforms/pseries/
Dof_helpers.c30 parent_path = kstrndup(path, tail - path, GFP_KERNEL); in pseries_of_derive_parent()
/linux-4.4.14/lib/
Dargv_split.c66 argv_str = kstrndup(str, KMALLOC_MAX_SIZE - 1, gfp); in argv_split()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/core/
Doption.c84 if (optstr && (s = kstrndup(optstr, arglen, GFP_KERNEL))) { in nvkm_longopt()
/linux-4.4.14/mm/
Dutil.c84 char *kstrndup(const char *s, size_t max, gfp_t gfp) in kstrndup() function
100 EXPORT_SYMBOL(kstrndup);
/linux-4.4.14/include/linux/
Dstring.h123 extern char *kstrndup(const char *s, size_t len, gfp_t gfp);
/linux-4.4.14/drivers/cdrom/
Dgdrom.c694 model_name = kstrndup(id->modname, 16, GFP_KERNEL); in gdrom_outputversion()
697 manuf_name = kstrndup(id->mname, 16, GFP_KERNEL); in gdrom_outputversion()
700 firmw_ver = kstrndup(id->firmver, 16, GFP_KERNEL); in gdrom_outputversion()
/linux-4.4.14/drivers/nvdimm/
Dclaim.c128 name = kstrndup(buf, len, GFP_KERNEL); in nd_namespace_store()
/linux-4.4.14/kernel/power/
Dwakelock.c184 wl->name = kstrndup(name, len, GFP_KERNEL); in wakelock_lookup_add()
Dhibernate.c1009 name = kstrndup(buf, len, GFP_KERNEL); in resume_store()
/linux-4.4.14/net/wimax/
Dop-msg.c372 pipe_name = kstrndup(nla_data(attr), attr_len + 1, GFP_KERNEL); in wimax_gnl_doit_msg_from_user()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dshadow.c184 source = optarg ? kstrndup(optarg, optlen, GFP_KERNEL) : NULL; in nvbios_shadow()
/linux-4.4.14/drivers/md/bcache/
Dutil.c113 char *s, *d = kstrndup(buf, PAGE_SIZE - 1, GFP_KERNEL); in bch_read_string_list()
Dsuper.c1943 if (!(path = kstrndup(buffer, size, GFP_KERNEL)) || in register_bcache()
/linux-4.4.14/fs/cifs/
Dcache.c136 dst = kstrndup(delim, len, GFP_KERNEL); in extract_sharename()
Dlink.c136 *_link_str = kstrndup(link_str, link_len, GFP_KERNEL); in parse_mf_symlink()
Dconnect.c1190 vol->UNC = kstrndup(devname, pos - devname, GFP_KERNEL); in cifs_parse_devname()
1282 mountdata_copy = kstrndup(mountdata, PAGE_SIZE, GFP_KERNEL); in cifs_parse_mount_options()
2436 vol->username = kstrndup(payload, len, GFP_KERNEL); in cifs_set_cifscreds()
2455 vol->password = kstrndup(delim, len, GFP_KERNEL); in cifs_set_cifscreds()
Dcifsfs.c683 cifs_sb->mountdata = kstrndup(data, PAGE_SIZE, GFP_KERNEL); in cifs_do_mount()
Dsmb1ops.c935 *symlinkinfo = kstrndup(referrals->node_name, in cifs_unix_dfs_readlink()
/linux-4.4.14/net/sunrpc/
Daddr.c177 p = kstrndup(delim + 1, len, GFP_KERNEL); in rpc_parse_scope_id()
/linux-4.4.14/net/sunrpc/auth_gss/
Dgss_rpc_upcall.c329 data->creds.cr_principal = kstrndup(client_name.data, in gssp_accept_sec_context_upcall()
/linux-4.4.14/fs/nfs/
Dnfs4namespace.c461 hostname = kstrndup(buf->data, buf->len, GFP_KERNEL); in nfs4_try_replacing_one_location()
Ddns_resolve.c93 new->hostname = kstrndup(key->hostname, key->namelen, GFP_KERNEL); in nfs_dns_ent_init()
Dsuper.c1906 *hostname = kstrndup(dev_name, len, GFP_KERNEL); in nfs_parse_devname()
1912 *export_path = kstrndup(end, len, GFP_KERNEL); in nfs_parse_devname()
/linux-4.4.14/fs/xfs/
Dxfs_super.c189 mp->m_fsname = kstrndup(sb->s_id, MAXNAMELEN, GFP_KERNEL); in xfs_parseargs()
248 mp->m_logname = kstrndup(value, MAXNAMELEN, GFP_KERNEL); in xfs_parseargs()
261 mp->m_rtname = kstrndup(value, MAXNAMELEN, GFP_KERNEL); in xfs_parseargs()
/linux-4.4.14/drivers/soc/ti/
Dknav_qmss_queue.c237 inst->name = kstrndup(name, KNAV_NAME_SIZE, GFP_KERNEL); in __knav_queue_open()
788 pool->name = kstrndup(name, KNAV_NAME_SIZE, GFP_KERNEL); in knav_pool_create()
1647 inst->irq_name = kstrndup(irq_name, sizeof(irq_name), GFP_KERNEL); in knav_queue_init_queue()
/linux-4.4.14/drivers/amba/
Dbus.c88 driver_override = kstrndup(buf, count, GFP_KERNEL); in driver_override_store()
/linux-4.4.14/net/ceph/
Dceph_common.c420 opt->name = kstrndup(argstr[0].from, in ceph_parse_options()
Dosdmap.c635 char *name = kstrndup(*p, len, GFP_NOFS); in decode_pool_names()
/linux-4.4.14/drivers/md/
Ddm-log-writes.c498 block->data = kstrndup(data, maxsize, GFP_KERNEL); in log_mark()
/linux-4.4.14/sound/pci/hda/
Dhda_sysfs.c155 char *s = kstrndup(src, len, GFP_KERNEL); in kstrndup_noeol()
/linux-4.4.14/fs/ceph/
Dsuper.c207 fsopt->snapdir_name = kstrndup(argstr[0].from, in parse_fsopt_token()
Dinode.c815 sym = kstrndup(iinfo->symlink, symlen, GFP_NOFS); in fill_inode()
/linux-4.4.14/drivers/input/misc/
Duinput.c405 dev->name = kstrndup(user_dev->name, UINPUT_MAX_NAME_SIZE, in uinput_setup_device()
/linux-4.4.14/drivers/usb/gadget/function/
Df_uac1.c853 tmp = kstrndup(page, len, GFP_KERNEL); \
Df_midi.c998 c = kstrndup(page, len, GFP_KERNEL); in f_midi_opts_id_store()
Df_fs.c3156 ptr = kstrndup(name, name_len, GFP_KERNEL); in ffs_set_inst_name()
/linux-4.4.14/drivers/base/
Dplatform.c815 driver_override = kstrndup(buf, count, GFP_KERNEL); in driver_override_store()
/linux-4.4.14/drivers/mtd/
Dsm_ftl.c64 vendor = kstrndup(ftl->cis_buffer + SM_CIS_VENDOR_OFFSET, in sm_create_sysfs_attributes()
/linux-4.4.14/drivers/hwtracing/intel_th/
Dmsu.c1396 s = kstrndup(p, end ? end - p : len, GFP_KERNEL); in nr_pages_store()
/linux-4.4.14/drivers/pci/
Dpci-sysfs.c531 driver_override = kstrndup(buf, count, GFP_KERNEL); in driver_override_store()
/linux-4.4.14/drivers/input/mouse/
Dpsmouse-base.c501 fw_id_copy = kstrndup(&serio->firmware_id[5], in psmouse_matches_pnp_id()
/linux-4.4.14/Documentation/DocBook/
Dkernel-api.xml.db170 API-kstrndup
/linux-4.4.14/kernel/
Dcgroup.c1671 kstrndup(token + 14, PATH_MAX - 1, GFP_KERNEL); in parse_cgroupfs_options()
1693 opts->name = kstrndup(name, in parse_cgroupfs_options()
/linux-4.4.14/kernel/trace/
Dtrace_events_filter.c2146 str = kstrndup(buf, len, GFP_KERNEL); in ftrace_function_filter_re()