Home
last modified time | relevance | path

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

123456

/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dsid.h46 kd = kmem_alloc(sizeof (*kd), KM_SLEEP); in ksid_lookupdomain()
48 kd->kd_name = kmem_alloc(len, KM_SLEEP); in ksid_lookupdomain()
/freebsd/sys/cddl/compat/opensolaris/sys/
H A Dsid.h43 kd = kmem_alloc(sizeof(*kd), KM_SLEEP); in ksid_lookupdomain()
45 kd->kd_name = kmem_alloc(len, KM_SLEEP); in ksid_lookupdomain()
H A Dkmem.h84 #define kmem_alloc(size, kmflags) zfs_kmem_alloc((size), (kmflags)) macro
/freebsd/sys/contrib/openzfs/module/zfs/
H A Dzfs_fuid.c126 packed = kmem_alloc(fuid_size, KM_SLEEP); in zfs_fuid_table_load()
144 domnode = kmem_alloc(sizeof (fuid_domain_t), KM_SLEEP); in zfs_fuid_table_load()
251 fuids = kmem_alloc(numnodes * sizeof (void *), KM_SLEEP); in zfs_fuid_sync()
267 packed = kmem_alloc(nvsize, KM_SLEEP); in zfs_fuid_sync()
336 domnode = kmem_alloc(sizeof (fuid_domain_t), KM_SLEEP); in zfs_fuid_find_by_domain()
476 fuid_domain = kmem_alloc(sizeof (zfs_fuid_domain_t), KM_SLEEP); in zfs_fuid_node_add()
490 fuid = kmem_alloc(sizeof (zfs_fuid_t), KM_SLEEP); in zfs_fuid_node_add()
H A Dddt_zap.c137 cbuf = kmem_alloc(csize, KM_SLEEP); in ddt_zap_lookup()
174 uchar_t *cbuf = kmem_alloc(cbuf_size, KM_SLEEP); in ddt_zap_update()
221 uchar_t *cbuf = kmem_alloc(csize, KM_SLEEP); in ddt_zap_walk()
H A Dpathname.c74 pnp->pn_buf = kmem_alloc(sz, KM_SLEEP); in pn_alloc_sz()
H A Dzfs_rlock.c245 proxy = kmem_alloc(sizeof (zfs_locked_range_t), KM_SLEEP); in zfs_rangelock_proxify()
274 rear = kmem_alloc(sizeof (zfs_locked_range_t), KM_SLEEP); in zfs_rangelock_split()
299 lr = kmem_alloc(sizeof (zfs_locked_range_t), KM_SLEEP); in zfs_rangelock_new_proxy()
489 new = kmem_alloc(sizeof (zfs_locked_range_t), KM_SLEEP); in zfs_rangelock_enter_impl()
H A Dzcp_get.c165 buf = kmem_alloc(ZAP_MAXVALUELEN, KM_SLEEP); in zcp_get_user_prop()
229 char *strval = kmem_alloc(ZAP_MAXVALUELEN, KM_SLEEP); in get_special_prop()
456 char *strval = kmem_alloc(ZAP_MAXVALUELEN, KM_SLEEP); in get_zap_prop()
612 domain_val = kmem_alloc(domain_len + 1, KM_SLEEP); in parse_userquota_prop()
H A Ddsl_deleg.c329 zc = kmem_alloc(sizeof (zap_cursor_t), KM_SLEEP); in dsl_deleg_get()
331 basezc = kmem_alloc(sizeof (zap_cursor_t), KM_SLEEP); in dsl_deleg_get()
333 source = kmem_alloc(ZFS_MAX_DATASET_NAME_LEN, KM_SLEEP); in dsl_deleg_get()
502 permnode = kmem_alloc(sizeof (perm_set_t), KM_SLEEP); in dsl_load_sets()
H A Dbplist.c48 bplist_entry_t *bpe = kmem_alloc(sizeof (*bpe), KM_SLEEP); in bplist_append()
H A Dobjlist.c25 objlist_t *list = kmem_alloc(sizeof (*list), KM_SLEEP); in objlist_create()
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_kmem.c164 cache = kmem_alloc(sizeof (*cache), KM_SLEEP); in kmem_cache_create()
198 p = kmem_alloc(cache->kc_size, flags); in kmem_cache_alloc()
283 msg = kmem_alloc(vsnprintf(NULL, 0, fmt, adx) + 1, KM_SLEEP); in kmem_vasprintf()
H A Dspl_misc.c64 buf = kmem_alloc(strlen(s) + 1, KM_SLEEP); in kmem_strdup()
H A Dspl_string.c93 buf = kmem_alloc(size, KM_SLEEP); in kmem_asprintf()
/freebsd/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/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzfs_ctldir.c771 snapname = kmem_alloc(ZFS_MAX_DATASET_NAME_LEN, KM_SLEEP); in zfsctl_snapshot_path_objset()
886 to = kmem_alloc(ZFS_MAX_DATASET_NAME_LEN, KM_SLEEP); in zfsctl_snapdir_rename()
887 from = kmem_alloc(ZFS_MAX_DATASET_NAME_LEN, KM_SLEEP); in zfsctl_snapdir_rename()
888 real = kmem_alloc(ZFS_MAX_DATASET_NAME_LEN, KM_SLEEP); in zfsctl_snapdir_rename()
889 fsname = kmem_alloc(ZFS_MAX_DATASET_NAME_LEN, KM_SLEEP); in zfsctl_snapdir_rename()
965 snapname = kmem_alloc(ZFS_MAX_DATASET_NAME_LEN, KM_SLEEP); in zfsctl_snapdir_remove()
966 real = kmem_alloc(ZFS_MAX_DATASET_NAME_LEN, KM_SLEEP); in zfsctl_snapdir_remove()
1012 dsname = kmem_alloc(ZFS_MAX_DATASET_NAME_LEN, KM_SLEEP); in zfsctl_snapdir_mkdir()
1324 mnt = kmem_alloc(MAXPATHLEN, KM_SLEEP); in zfsctl_snapdir_vget()
/freebsd/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-thread.c83 tp = kmem_alloc(sizeof (thread_priv_t), KM_PUSHPAGE); in __thread_create()
90 tp->tp_name = kmem_alloc(tp->tp_name_size, KM_PUSHPAGE); in __thread_create()
H A Dspl-zone.c184 zds = kmem_alloc(sizeof (zone_datasets_t), KM_SLEEP); in zone_dataset_attach()
202 zd = kmem_alloc(sizeof (zone_dataset_t) + dsnamelen + 1, KM_SLEEP); in zone_dataset_attach()
/freebsd/sys/contrib/openzfs/lib/libspl/include/sys/
H A Dkmem.h38 #define kmem_alloc(size, flags) ((void) sizeof (flags), malloc(size)) macro
/freebsd/sys/contrib/openzfs/lib/libnvpair/
H A Dnvpair_alloc_system.c36 return (kmem_alloc(size, (int)(uintptr_t)nva->nva_arg)); in nv_alloc_sys()
/freebsd/contrib/netbsd-tests/rump/kernspace/
H A Dlockme.c87 some = kmem_alloc(sizeof(*some), KM_SLEEP); in rumptest_lockme()
/freebsd/sys/contrib/openzfs/module/nvpair/
H A Dnvpair_alloc_spl.c46 return (kmem_alloc(size, KM_NOSLEEP)); in nv_alloc_nosleep_spl()
/freebsd/sys/cddl/compat/opensolaris/kern/
H A Dopensolaris_string.c90 buf = kmem_alloc(size, KM_SLEEP); in kmem_asprintf()
/freebsd/sys/contrib/openzfs/module/icp/api/
H A Dkcf_ctxops.c91 if ((ctx_tmpl = kmem_alloc( in crypto_create_ctx_template()
/freebsd/sys/cddl/dev/dtrace/
H A Ddtrace_sysctl.c42 if ((p_name = kmem_alloc(len, KM_SLEEP)) == NULL) in sysctl_dtrace_providers()

123456