Home
last modified time | relevance | path

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

1234

/freebsd-12.1/sys/cddl/compat/opensolaris/sys/
H A Dsid.h45 kd = kmem_alloc(sizeof(*kd), KM_SLEEP); in ksid_lookupdomain()
47 kd->kd_name = kmem_alloc(len, KM_SLEEP); in ksid_lookupdomain()
H A Dkmem.h86 #define kmem_alloc(size, kmflags) zfs_kmem_alloc((size), (kmflags)) macro
/freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dzfs_fuid.c128 packed = kmem_alloc(fuid_size, KM_SLEEP); in zfs_fuid_table_load()
146 domnode = kmem_alloc(sizeof (fuid_domain_t), KM_SLEEP); in zfs_fuid_table_load()
253 fuids = kmem_alloc(numnodes * sizeof (void *), KM_SLEEP); in zfs_fuid_sync()
269 packed = kmem_alloc(nvsize, KM_SLEEP); in zfs_fuid_sync()
338 domnode = kmem_alloc(sizeof (fuid_domain_t), KM_SLEEP); in zfs_fuid_find_by_domain()
455 fuid_domain = kmem_alloc(sizeof (zfs_fuid_domain_t), KM_SLEEP); in zfs_fuid_node_add()
469 fuid = kmem_alloc(sizeof (zfs_fuid_t), KM_SLEEP); in zfs_fuid_node_add()
H A Dvdev_disk.c224 char *buf = kmem_alloc(len, KM_SLEEP); in vdev_disk_hold()
365 char *buf = kmem_alloc(len, KM_SLEEP); in vdev_disk_open()
499 physpath = kmem_alloc(MAXPATHLEN, KM_SLEEP); in vdev_disk_open()
784 zio->io_vsd = dkc = kmem_alloc(sizeof (*dkc), KM_SLEEP); in vdev_disk_io_start()
818 vb = kmem_alloc(sizeof (vdev_buf_t), KM_SLEEP); in vdev_disk_io_start()
930 label = kmem_alloc(sizeof (vdev_label_t), KM_SLEEP); in vdev_disk_read_rootlabel()
H A Dzfs_rlock.c205 proxy = kmem_alloc(sizeof (rl_t), KM_SLEEP); in zfs_range_proxify()
234 rear = kmem_alloc(sizeof (rl_t), KM_SLEEP); in zfs_range_split()
259 rl = kmem_alloc(sizeof (rl_t), KM_SLEEP); in zfs_range_new_proxy()
432 new = kmem_alloc(sizeof (rl_t), KM_SLEEP); in zfs_range_lock()
H A Dvdev_indirect_births.c109 vib->vib_entries = kmem_alloc(births_size, KM_SLEEP); in vdev_indirect_births_open()
149 new_entries = kmem_alloc(new_size, KM_SLEEP); in vdev_indirect_births_add_entry()
H A Dzcp_get.c164 buf = kmem_alloc(ZAP_MAXVALUELEN, KM_SLEEP); in zcp_get_user_prop()
324 char *strval = kmem_alloc(ZAP_MAXVALUELEN, KM_SLEEP); in get_special_prop()
517 char *strval = kmem_alloc(ZAP_MAXVALUELEN, KM_SLEEP); in get_zap_prop()
666 domain_val = kmem_alloc(domain_len + 1, KM_SLEEP); in parse_userquota_prop()
H A Dvdev_indirect_mapping.c356 vim->vim_entries = kmem_alloc(map_size, KM_SLEEP); in vdev_indirect_mapping_open()
477 vim->vim_entries = kmem_alloc(new_size, KM_SLEEP); in vdev_indirect_mapping_add_entries()
573 uint32_t *counts = kmem_alloc(counts_size, KM_SLEEP); in vdev_indirect_mapping_load_obsolete_counts()
H A Dbplist.c48 bplist_entry_t *bpe = kmem_alloc(sizeof (*bpe), KM_SLEEP); in bplist_append()
H A Dunique.c78 unique_t *un = kmem_alloc(sizeof (unique_t), KM_SLEEP); in unique_insert()
H A Dzfs_debug.c80 zdm = kmem_alloc(sizeof (zfs_dbgmsg_t) + size, KM_SLEEP); in zfs_dbgmsg()
H A Ddsl_prop.c242 pr = kmem_alloc(sizeof (dsl_prop_record_t), KM_SLEEP); in dsl_prop_record_create()
295 cbr = kmem_alloc(sizeof (dsl_prop_cb_record_t), KM_SLEEP); in dsl_prop_register()
597 za = kmem_alloc(sizeof (zap_attribute_t), KM_SLEEP); in dsl_prop_changed_notify()
752 tbuf = kmem_alloc(ZAP_MAXVALUELEN, KM_SLEEP); in dsl_prop_set_sync_impl()
1025 char *tmp = kmem_alloc(za.za_num_integers, in dsl_prop_get_all_impl()
H A Dspace_reftree.c91 sr = kmem_alloc(sizeof (*sr), KM_SLEEP); in space_reftree_add_node()
H A Dspa_config.c89 pathname = kmem_alloc(MAXPATHLEN, KM_SLEEP); in spa_config_load()
103 buf = kmem_alloc(fsize, KM_SLEEP); in spa_config_load()
/freebsd-12.1/contrib/ntp/include/
H A Dparse.h61 extern caddr_t kmem_alloc (unsigned int);
66 #define MALLOC(_X_) (char *)kmem_alloc(_X_)
70 #define MALLOC(_X_) (char *)kmem_alloc(_X_, KM_SLEEP)
/freebsd-12.1/sys/cddl/compat/opensolaris/kern/
H A Dopensolaris_sunddi.c120 itemp = kmem_alloc(sizeof(*itemp), KM_SLEEP); in ddi_soft_state_zalloc()
169 ss = kmem_alloc(sizeof(*ss), KM_SLEEP); in ddi_soft_state_init()
H A Dopensolaris_kobj.c53 return (kmem_alloc(size, (flag & KM_NOWAIT) ? KM_NOSLEEP : KM_SLEEP)); in kobj_alloc()
98 out = kmem_alloc(sizeof(*out), KM_SLEEP); in kobj_open_file()
H A Dopensolaris_kmem.c162 cache = kmem_alloc(sizeof(*cache), KM_SLEEP); in kmem_cache_create()
196 p = kmem_alloc(cache->kc_size, flags); in kmem_cache_alloc()
H A Dopensolaris_string.c92 buf = kmem_alloc(size, KM_SLEEP); in kmem_asprintf()
H A Dopensolaris_taskq.c74 tq = kmem_alloc(sizeof(*tq), KM_SLEEP); in taskq_create()
/freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/os/
H A Dnvpair_alloc_system.c34 return (kmem_alloc(size, (int)(uintptr_t)nva->nva_arg)); in nv_alloc_sys()
/freebsd-12.1/contrib/netbsd-tests/rump/kernspace/
H A Dlockme.c87 some = kmem_alloc(sizeof(*some), KM_SLEEP); in rumptest_lockme()
/freebsd-12.1/sys/cddl/dev/dtrace/
H A Ddtrace_sysctl.c44 if ((p_name = kmem_alloc(len, KM_SLEEP)) == NULL) in sysctl_dtrace_providers()
/freebsd-12.1/cddl/contrib/opensolaris/lib/libzpool/common/
H A Dtaskq.c95 t = kmem_alloc(sizeof (taskq_ent_t), tqflags & KM_SLEEP); in task_alloc()
272 tq->tq_threadlist = kmem_alloc(nthreads * sizeof (thread_t), KM_SLEEP); in taskq_create()
/freebsd-12.1/sys/cddl/dev/dtrace/mips/
H A Ddtrace_subr.c81 hdlr = kmem_alloc(sizeof (dtrace_invop_hdlr_t), KM_SLEEP); in dtrace_invop_add()

1234