Home
last modified time | relevance | path

Searched refs:kmem_alloc (Results 1 – 25 of 925) sorted by relevance

12345678910>>...37

/illumos-gate/usr/src/uts/common/crypto/core/
H A Dkcf_prov_tabs.c240 dst->co_mac_ops = kmem_alloc(sizeof (crypto_mac_ops_t), in allocate_ops_v1()
244 dst->co_sign_ops = kmem_alloc(sizeof (crypto_sign_ops_t), in allocate_ops_v1()
252 dst->co_dual_ops = kmem_alloc(sizeof (crypto_dual_ops_t), in allocate_ops_v1()
256 dst->co_dual_cipher_mac_ops = kmem_alloc( in allocate_ops_v1()
260 dst->co_random_ops = kmem_alloc( in allocate_ops_v1()
281 dst->co_key_ops = kmem_alloc(sizeof (crypto_key_ops_t), in allocate_ops_v1()
285 dst->co_provider_ops = kmem_alloc( in allocate_ops_v1()
289 dst->co_ctx_ops = kmem_alloc(sizeof (crypto_ctx_ops_t), in allocate_ops_v1()
314 kmem_alloc(sizeof (crypto_fips140_ops_t), KM_SLEEP); in allocate_ops_v4()
651 final_buffer = kmem_alloc(final_size, KM_SLEEP); in kcf_get_slot_list()
[all …]
H A Dkcf_cryptoadm.c203 mechsp = kmem_alloc(alloc_size, KM_SLEEP); in kcf_soft_config_init()
329 p = kmem_alloc(new_count * sizeof (crypto_dev_list_entry_t), KM_SLEEP); in crypto_get_dev_list()
376 namep = names = kmem_alloc(n, KM_SLEEP); in crypto_get_soft_list()
404 final_buffer = kmem_alloc(final_size, KM_SLEEP); in crypto_get_soft_list()
474 mech_names = kmem_alloc(max_count * sizeof (crypto_mech_name_t), in crypto_get_dev_info()
494 kmem_alloc(k * sizeof (crypto_mech_name_t), KM_SLEEP); in crypto_get_dev_info()
529 tmp = kmem_alloc(name_len + 8, KM_SLEEP); in crypto_get_soft_info()
862 mech_names = kmem_alloc(n * sizeof (crypto_mech_name_t), kmflag); in dup_mech_names()
1005 mech_names = kmem_alloc((scnt - dcnt) * sizeof (crypto_mech_name_t), in crypto_build_permitted_mech_names()
1069 new_entry->ce_name = kmem_alloc(name_len, KM_SLEEP); in add_soft_config()
[all …]
/illumos-gate/usr/src/common/crypto/ecc/
H A Decl_curve.c69 ret->text = kmem_alloc(strlen(params->text) + 1, kmflag); in ECCurveParams_dup()
79 ret->irr = kmem_alloc(strlen(params->irr) + 1, kmflag); in ECCurveParams_dup()
87 ret->curvea = kmem_alloc(strlen(params->curvea) + 1, kmflag); in ECCurveParams_dup()
95 ret->curveb = kmem_alloc(strlen(params->curveb) + 1, kmflag); in ECCurveParams_dup()
103 ret->genx = kmem_alloc(strlen(params->genx) + 1, kmflag); in ECCurveParams_dup()
111 ret->geny = kmem_alloc(strlen(params->geny) + 1, kmflag); in ECCurveParams_dup()
119 ret->order = kmem_alloc(strlen(params->order) + 1, kmflag); in ECCurveParams_dup()
/illumos-gate/usr/src/uts/common/os/
H A Ddacf_clnt.c92 dev_path = kmem_alloc(MAXPATHLEN, KM_SLEEP); in dacfc_match_create_minor()
94 pa_rsrv = kmem_alloc(sizeof (dacf_rsrvlist_t), KM_SLEEP); in dacfc_match_create_minor()
95 pd_rsrv = kmem_alloc(sizeof (dacf_rsrvlist_t), KM_SLEEP); in dacfc_match_create_minor()
101 drv_mname = kmem_alloc(MAXPATHLEN, KM_SLEEP); in dacfc_match_create_minor()
246 path = kmem_alloc(MAXPATHLEN, KM_SLEEP); in dacfc_postattach()
300 path = kmem_alloc(MAXPATHLEN, KM_SLEEP); in dacfc_predetach()
311 path = kmem_alloc(MAXPATHLEN, KM_SLEEP); in dacfc_predetach()
H A Ddacf.c370 rule = kmem_alloc(sizeof (dacf_rule_t), KM_SLEEP); in dacf_rule_ctor()
375 rule->r_devspec_data = kmem_alloc(strlen(device_spec) + 1, KM_SLEEP); in dacf_rule_ctor()
386 rule->r_module = kmem_alloc(strlen(module) + 1, KM_SLEEP); in dacf_rule_ctor()
389 rule->r_opset = kmem_alloc(strlen(opset) + 1, KM_SLEEP); in dacf_rule_ctor()
609 arg = kmem_alloc(sizeof (dacf_arg_t), KM_SLEEP); in dacf_arg_insert()
610 arg->arg_name = kmem_alloc(strlen(name) + 1, KM_SLEEP); in dacf_arg_insert()
612 arg->arg_val = kmem_alloc(strlen(val) + 1, KM_SLEEP); in dacf_arg_insert()
729 str = kmem_alloc(strlen(mod_name) + 1, KM_SLEEP); in dacf_module_register()
874 dst->opset_name = kmem_alloc(strlen(src->opset_name) + 1, KM_SLEEP); in dacf_opset_copy()
888 dst->opset_ops = kmem_alloc(sizeof (dacf_op_t) * (nelems + 1), in dacf_opset_copy()
/illumos-gate/usr/src/uts/common/kiconv/kiconv_emea/
H A Dkiconv_emea.c109 s = (kiconv_state_t)kmem_alloc(sizeof (kiconv_state_data_t), KM_SLEEP); in open_to_720()
121 s = (kiconv_state_t)kmem_alloc(sizeof (kiconv_state_data_t), KM_SLEEP); in open_to_737()
133 s = (kiconv_state_t)kmem_alloc(sizeof (kiconv_state_data_t), KM_SLEEP); in open_to_852()
145 s = (kiconv_state_t)kmem_alloc(sizeof (kiconv_state_data_t), KM_SLEEP); in open_to_857()
157 s = (kiconv_state_t)kmem_alloc(sizeof (kiconv_state_data_t), KM_SLEEP); in open_to_862()
169 s = (kiconv_state_t)kmem_alloc(sizeof (kiconv_state_data_t), KM_SLEEP); in open_to_866()
181 s = (kiconv_state_t)kmem_alloc(sizeof (kiconv_state_data_t), KM_SLEEP); in open_to_1250()
193 s = (kiconv_state_t)kmem_alloc(sizeof (kiconv_state_data_t), KM_SLEEP); in open_to_1251()
205 s = (kiconv_state_t)kmem_alloc(sizeof (kiconv_state_data_t), KM_SLEEP); in open_to_1253()
217 s = (kiconv_state_t)kmem_alloc(sizeof (kiconv_state_data_t), KM_SLEEP); in open_to_1254()
[all …]
/illumos-gate/usr/src/uts/common/rpc/sec/
H A Dsec_clnt.c112 data = kmem_alloc(sizeof (*data), KM_SLEEP); in gss_clnt_loadinfo()
138 elements = kmem_alloc(data->mechanism.length, KM_SLEEP); in gss_clnt_loadinfo()
171 data = kmem_alloc(sizeof (*data), KM_SLEEP); in dh_k4_clnt_loadinfo()
200 syncaddr->buf = kmem_alloc(syncaddr->len, KM_SLEEP); in dh_k4_clnt_loadinfo()
211 kmem_alloc(nlen, KM_SLEEP); in dh_k4_clnt_loadinfo()
224 knconf = kmem_alloc(sizeof (*knconf), KM_SLEEP); in dh_k4_clnt_loadinfo()
259 pf = kmem_alloc(KNC_STRSIZE, KM_SLEEP); in dh_k4_clnt_loadinfo()
260 p = kmem_alloc(KNC_STRSIZE, KM_SLEEP); in dh_k4_clnt_loadinfo()
335 secdata = kmem_alloc(sizeof (*secdata), KM_SLEEP); in sec_clnt_loadinfo()
728 mech = kmem_alloc(sizeof (rpc_gss_OID_desc), KM_SLEEP); in sec_clnt_revoke()
[all …]
H A Dsec_svc.c246 oroots = kmem_alloc(oallocsz, KM_SLEEP); in sec_svc_loadrootnames()
275 roots[i] = kmem_alloc(len, KM_SLEEP); in sec_svc_loadrootnames()
283 roots = kmem_alloc(allocsz, KM_SLEEP); in sec_svc_loadrootnames()
284 oroots = kmem_alloc(oallocsz, KM_SLEEP); in sec_svc_loadrootnames()
305 gssname = kmem_alloc(len, KM_SLEEP); in sec_svc_loadrootnames()
/illumos-gate/usr/src/psm/stand/boot/common/
H A Dreadfile.c134 extern void *kmem_alloc(size_t, int);
296 allphdrs = (caddr_t)kmem_alloc(phdrsize, 0); in read_elf32()
321 if ((note_buf = kmem_alloc(phdr->p_filesz, 0)) == NULL) in read_elf32()
400 kmem_alloc(phdr->p_memsz, 0)) == 0) in read_elf32()
564 (Elf32_Addr)(uintptr_t)kmem_alloc(size, 0)) == 0) { in read_elf32()
669 allphdrs = (caddr_t)kmem_alloc(phdrsize, 0); in read_elf64()
780 kmem_alloc(phdr->p_memsz, 0)) == 0) in read_elf64()
937 (Elf64_Boot *)kmem_alloc(vsize, 0)) == NULL) in read_elf64()
949 (Elf64_Addr)kmem_alloc(size, 0)) == 0) { in read_elf64()
1016 if ((shdrs = (caddr_t)kmem_alloc(size, 0)) == NULL) { in iload32()
[all …]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_event.c226 if (!(entry = (emlxs_event_entry_t *)kmem_alloc( in emlxs_event()
369 if (!(bp = (uint8_t *)kmem_alloc(size, KM_NOSLEEP))) { in emlxs_log_rscn_event()
410 if (!(bp = (uint8_t *)kmem_alloc(size, KM_NOSLEEP))) { in emlxs_log_vportrscn_event()
490 if (!(bp = (uint8_t *)kmem_alloc(size, KM_NOSLEEP))) { in emlxs_log_ct_event()
555 if (!(bp = (uint8_t *)kmem_alloc(size, KM_NOSLEEP))) { in emlxs_log_link_event()
677 if (!(bp = (uint8_t *)kmem_alloc(size, KM_NOSLEEP))) { in emlxs_log_dump_event()
753 if (!(bp = (uint8_t *)kmem_alloc(size, KM_NOSLEEP))) { in emlxs_log_fcoe_event()
782 if (!(bp = (uint8_t *)kmem_alloc(size, KM_NOSLEEP))) { in emlxs_log_async_event()
1156 if (!(bp = (struct sd_prlo_rcv_v0 *)kmem_alloc(size, in emlxs_log_sd_prlo_event()
1194 if (!(bp = (struct sd_lsrjt_rcv_v0 *)kmem_alloc(size, in emlxs_log_sd_lsrjt_event()
[all …]
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_vfsops.c322 pf = kmem_alloc(KNC_STRSIZE, KM_SLEEP); in nfs_copyin()
323 p = kmem_alloc(KNC_STRSIZE, KM_SLEEP); in nfs_copyin()
348 pc = kmem_alloc(sizeof (*pc), KM_SLEEP); in nfs_copyin()
367 addr.buf = kmem_alloc(addr.len, KM_SLEEP); in nfs_copyin()
422 syncaddr.buf = kmem_alloc(syncaddr.len, KM_SLEEP); in nfs_copyin()
868 data = kmem_alloc(sizeof (*data), KM_SLEEP); in nfs_mount()
879 pf = kmem_alloc(KNC_STRSIZE, KM_SLEEP); in nfs_mount()
880 p = kmem_alloc(KNC_STRSIZE, KM_SLEEP); in nfs_mount()
889 data->netname = kmem_alloc(nlen, KM_SLEEP); in nfs_mount()
897 secdata = kmem_alloc(sizeof (*secdata), KM_SLEEP); in nfs_mount()
[all …]
H A Dnfs3_vfsops.c312 pf = kmem_alloc(KNC_STRSIZE, KM_SLEEP); in nfs3_copyin()
313 p = kmem_alloc(KNC_STRSIZE, KM_SLEEP); in nfs3_copyin()
348 addr.buf = kmem_alloc(addr.len, KM_SLEEP); in nfs3_copyin()
402 syncaddr.buf = kmem_alloc(syncaddr.len, KM_SLEEP); in nfs3_copyin()
524 fhandle = kmem_alloc(sizeof (nfs_fhandle), KM_SLEEP); in nfs3_mount()
836 secdata = kmem_alloc(sizeof (*secdata), KM_SLEEP); in nfs3_mount()
839 data = kmem_alloc(sizeof (*data), KM_SLEEP); in nfs3_mount()
849 pf = kmem_alloc(KNC_STRSIZE, KM_SLEEP); in nfs3_mount()
850 p = kmem_alloc(KNC_STRSIZE, KM_SLEEP); in nfs3_mount()
859 data->netname = kmem_alloc(nlen, KM_SLEEP); in nfs3_mount()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Dpage.c64 page = kmem_alloc(PAGE_SIZE, gfp); in rdsv3_page_remainder_alloc()
77 page = kmem_alloc(bytes, KM_NOSLEEP); in rdsv3_page_remainder_alloc()
/illumos-gate/usr/src/uts/common/syscall/
H A Drctlsys.c242 kname = kmem_alloc(MAXPATHLEN, KM_SLEEP); in rctlsys_get()
243 krde = kmem_alloc(sizeof (rctl_dict_entry_t), KM_SLEEP); in rctlsys_get()
320 oblk = kmem_alloc(sizeof (rctl_opaque_t), KM_SLEEP); in rctlsys_get()
346 nblk = kmem_alloc(sizeof (rctl_opaque_t), KM_SLEEP); in rctlsys_get()
415 kname = kmem_alloc(MAXPATHLEN, KM_SLEEP); in rctlsys_set()
430 nblk = kmem_alloc(sizeof (rctl_opaque_t), KM_SLEEP); in rctlsys_set()
448 oblk = kmem_alloc(sizeof (rctl_opaque_t), KM_SLEEP); in rctlsys_set()
801 kname = kmem_alloc(MAXPATHLEN, KM_SLEEP); in rctlsys_ctl()
810 krde = kmem_alloc(sizeof (rctl_dict_entry_t), KM_SLEEP); in rctlsys_ctl()
839 krde = kmem_alloc(sizeof (rctl_dict_entry_t), KM_SLEEP); in rctlsys_ctl()
[all …]
H A Dgetpagesizes.c55 pgsza = kmem_alloc(sizeof (*pgsza) * nelem, KM_SLEEP); in getpagesizes()
88 pgsza32 = kmem_alloc(sizeof (*pgsza32) * pagesizes, KM_SLEEP); in getpagesizes32()
/illumos-gate/usr/src/uts/common/io/
H A Dsysevent.c222 chan_name = kmem_alloc(uargs.chan_name.len, KM_SLEEP); in sysevent_chan_open()
307 sid = kmem_alloc(uargs.sid.len, KM_SLEEP); in sysevent_subscribe()
320 class_info = kmem_alloc(uargs.class_info.len, KM_SLEEP); in sysevent_subscribe()
371 sid = kmem_alloc(uargs.sid.len, KM_SLEEP); in sysevent_unsubscribe()
401 buf = kmem_alloc(uargs.out_data.len, KM_SLEEP); in sysevent_channames()
437 channel = kmem_alloc(uargs.in_data.len, KM_SLEEP); in sysevent_chandata()
450 buf = kmem_alloc(uargs.out_data.len, KM_SLEEP); in sysevent_chandata()
499 buf = kmem_alloc(bufsz, KM_SLEEP); in sysevent_setpropnvl()
554 char *buf = kmem_alloc(reqsz, KM_SLEEP); in sysevent_getpropnvl()
/illumos-gate/usr/src/uts/common/rpc/sec_gss/
H A Drpcsec_gss_utils.c70 tmp = (gss_OID) kmem_alloc(sizeof (gss_OID_desc), KM_SLEEP); in __rpc_gss_dup_oid()
72 tmp->elements = kmem_alloc((oid->length), KM_SLEEP); in __rpc_gss_dup_oid()
134 (*principal) = (rpc_gss_principal_t)kmem_alloc(plen, KM_SLEEP);
/illumos-gate/usr/src/uts/common/xen/io/
H A Dxenbus_client.c101 state = kmem_alloc(strlen(path) + 1 + strlen(path2) + 1, KM_SLEEP); in xenbus_watch_path2()
159 path_buffer = kmem_alloc(strlen("error/") + strlen(dev->nodename) + in error_path()
177 printf_buffer = kmem_alloc(PRINTF_BUFFER_SIZE, KM_SLEEP); in common_dev_error()
/illumos-gate/usr/src/uts/common/fs/autofs/
H A Dauto_vfsops.c469 fnip->fi_opts = kmem_alloc(len, KM_SLEEP); in auto_mount()
486 fnip->fi_map = kmem_alloc(len, KM_SLEEP); in auto_mount()
524 fnip->fi_addr.buf = kmem_alloc(args.addr.len, KM_SLEEP); in auto_mount()
546 fnip->fi_path = kmem_alloc(len, KM_SLEEP); in auto_mount()
563 fnip->fi_opts = kmem_alloc(len, KM_SLEEP); in auto_mount()
578 fnip->fi_map = kmem_alloc(len, KM_SLEEP); in auto_mount()
593 fnip->fi_subdir = kmem_alloc(len, KM_SLEEP); in auto_mount()
608 fnip->fi_key = kmem_alloc(len, KM_SLEEP); in auto_mount()
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/
H A Dfake_vfs.c474 vfsp->vfs_implp = kmem_alloc(sizeof (vfs_impl_t), KM_SLEEP); in vfsimpl_setup()
596 inargs = kmem_alloc(MAX_MNTOPT_STR, KM_SLEEP); in fake_domount()
988 result[j] = kmem_alloc(strlen(moc[j]) + 1, KM_SLEEP); in vfs_copycancelopt_extend()
1006 dp = kmem_alloc(strlen(sp) + 1, KM_SLEEP); in vfs_copyopt()
1017 dp = kmem_alloc(strlen(sp) + 1, KM_SLEEP); in vfs_copyopt()
1127 *dp = kmem_alloc(strlen(*sp2) + 1, KM_SLEEP); in vfs_mergecancelopts()
1133 char **nres = kmem_alloc(bytes, KM_SLEEP); in vfs_mergecancelopts()
1172 motbl = kmem_alloc(count * sizeof (mntopt_t), KM_SLEEP); in vfs_mergeopttbl()
1279 sp = kmem_alloc(strlen(opt) + 1, KM_SLEEP); in vfs_setmntopt_nolock()
1292 sp = kmem_alloc(strlen(arg) + 1, KM_SLEEP); in vfs_setmntopt_nolock()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Dpersistent.c171 target_name = kmem_alloc(MAX_KEY_SIZE, KM_SLEEP); in persistent_init_static_addr_oids()
1218 name = (char *)kmem_alloc(ISCSI_MAX_NAME_LEN, KM_SLEEP); in persistent_dump_data()
1219 addr_buf = (char *)kmem_alloc(INET6_ADDRSTRLEN, KM_SLEEP); in persistent_dump_data()
1220 bitbuf = (char *)kmem_alloc(BITBUF_LEN, KM_SLEEP); in persistent_dump_data()
1240 radius = (iscsi_radius_props_t *)kmem_alloc(sizeof (*radius), in persistent_dump_data()
1256 entry = (entry_t *)kmem_alloc(sizeof (*entry), KM_SLEEP); in persistent_dump_data()
1311 param = (persistent_param_t *)kmem_alloc(sizeof (*param), KM_SLEEP); in persistent_dump_data()
1408 chap = (iscsi_chap_props_t *)kmem_alloc(sizeof (*chap), KM_SLEEP); in persistent_dump_data()
1420 auth = (iscsi_auth_props_t *)kmem_alloc(sizeof (*auth), KM_SLEEP); in persistent_dump_data()
/illumos-gate/usr/src/uts/common/idmap/
H A Didmap_cache.c126 char *ret = kmem_alloc(len, KM_SLEEP); in kidmap_strdup()
592 new = kmem_alloc(sizeof (sid2pid_t), KM_SLEEP); in kidmap_cache_add_sid2uid()
634 new = kmem_alloc(sizeof (pid2sid_t), KM_SLEEP); in kidmap_cache_add_sid2uid()
685 new = kmem_alloc(sizeof (sid2pid_t), KM_SLEEP); in kidmap_cache_add_sid2gid()
727 new = kmem_alloc(sizeof (pid2sid_t), KM_SLEEP); in kidmap_cache_add_sid2gid()
787 new = kmem_alloc(sizeof (sid2pid_t), KM_SLEEP); in kidmap_cache_add_sid2pid()
840 new = kmem_alloc(sizeof (pid2sid_t), KM_SLEEP); in kidmap_cache_add_sid2pid()
871 new = kmem_alloc(sizeof (pid2sid_t), KM_SLEEP); in kidmap_cache_add_sid2pid()
943 kidmap_sid_prefix_store = kmem_alloc( in kidmap_sid_prefix_store_init()
1001 new = kmem_alloc(sizeof (sid_prefix_node_t), KM_SLEEP); in kidmap_find_sid_prefix()
/illumos-gate/usr/src/uts/common/inet/ilb/
H A Dilb_alg_rr.c123 new_server = kmem_alloc(sizeof (rr_server_t), KM_NOSLEEP); in rr_server_add()
193 if ((alg = kmem_alloc(sizeof (ilb_alg_data_t), KM_NOSLEEP)) == NULL) in ilb_alg_rr_init()
195 if ((rr_alg = kmem_alloc(sizeof (rr_t), KM_NOSLEEP)) == NULL) { in ilb_alg_rr_init()
/illumos-gate/usr/src/lib/smbsrv/libfksmbsrv/common/
H A Dvncache.c211 vpath = kmem_alloc(len, KM_SLEEP); in vncache_enter()
217 vpath = kmem_alloc(len, KM_SLEEP); in vncache_enter()
260 vpath = kmem_alloc(len, KM_SLEEP); in vncache_renamed()
/illumos-gate/usr/src/uts/common/rpc/
H A Dmt_rpcinit.c71 ks_data = kmem_alloc(template_size, KM_SLEEP); in rpcstat_zone_init_common()
93 rpcstat = kmem_alloc(sizeof (*rpcstat), KM_SLEEP); in mt_kstat_zone_init()

12345678910>>...37