Home
last modified time | relevance | path

Searched refs:kmem_zalloc (Results 1 – 25 of 120) sorted by relevance

12345

/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dsid.h47 kd = kmem_zalloc(sizeof (ksiddomain_t), KM_SLEEP); in ksid_lookupdomain()
48 kd->kd_name = kmem_zalloc(len + 1, KM_SLEEP); in ksid_lookupdomain()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzpl_inode.c192 vap = kmem_zalloc(sizeof (vattr_t), KM_SLEEP); in zpl_create()
253 vap = kmem_zalloc(sizeof (vattr_t), KM_SLEEP); in zpl_mknod()
308 vap = kmem_zalloc(sizeof (vattr_t), KM_SLEEP); in zpl_tmpfile()
402 vap = kmem_zalloc(sizeof (vattr_t), KM_SLEEP); in zpl_mkdir()
560 vap = kmem_zalloc(sizeof (vattr_t), KM_SLEEP); in zpl_setattr()
633 wo_vap = kmem_zalloc(sizeof (vattr_t), KM_SLEEP); in zpl_rename2()
686 vap = kmem_zalloc(sizeof (vattr_t), KM_SLEEP); in zpl_symlink()
729 iov.iov_base = kmem_zalloc(MAXPATHLEN, KM_SLEEP); in zpl_get_link_common()
H A Dzfs_ctldir.c142 se = kmem_zalloc(sizeof (zfs_snapentry_t), KM_SLEEP); in zfsctl_snapshot_alloc()
1074 path_buffer = kmem_zalloc(len, KM_SLEEP); in get_root_path()
1181 full_name = kmem_zalloc(ZFS_MAX_DATASET_NAME_LEN, KM_SLEEP); in zfsctl_snapshot_mount()
1182 full_path = kmem_zalloc(MAXPATHLEN, KM_SLEEP); in zfsctl_snapshot_mount()
1183 options = kmem_zalloc(7, KM_SLEEP); in zfsctl_snapshot_mount()
1195 char *m = kmem_zalloc(MAXPATHLEN, KM_SLEEP); in zfsctl_snapshot_mount()
H A Dzfs_sysfs.c174 zkobj->zko_attr_list = kmem_zalloc(ATTR_TABLE_SIZE(attr_cnt), in zfs_kobj_init()
181 kmem_zalloc(DEFAULT_ATTR_SIZE(attr_cnt), KM_SLEEP); in zfs_kobj_init()
198 zkobj->zko_children = kmem_zalloc(CHILD_TABLE_SIZE(child_cnt), in zfs_kobj_init()
H A Dzfs_debug.c135 zfs_dbgmsg_t *zdm = kmem_zalloc(size, KM_SLEEP); in __zfs_dbgmsg()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Ddmu_redact.c215 struct objnode *obj = kmem_zalloc(sizeof (*obj), KM_SLEEP); in zfs_get_deleteq()
290 record = kmem_zalloc(sizeof (struct redact_record), in redact_cb()
322 record = kmem_zalloc(sizeof (struct redact_record), KM_SLEEP); in redact_cb()
379 data = kmem_zalloc(sizeof (*data), KM_SLEEP); in redact_traverse_thread()
743 record = kmem_zalloc(sizeof (struct redact_record), in perform_thread_merge()
793 record = kmem_zalloc(sizeof (struct redact_record), in perform_thread_merge()
847 struct redact_record *rec = kmem_zalloc(sizeof (*rec), KM_SLEEP); in redact_merge_thread()
1017 newredactbook = kmem_zalloc(sizeof (char) * ZFS_MAX_DATASET_NAME_LEN, in dmu_redact_snap()
1159 rmta = kmem_zalloc(sizeof (struct redact_merge_thread_arg), KM_SLEEP); in dmu_redact_snap()
H A Dspa_config.c211 temp = kmem_zalloc(MAXPATHLEN, KM_SLEEP); in spa_config_write()
533 ddh = kmem_zalloc(sizeof (ddt_histogram_t), KM_SLEEP); in spa_config_generate()
540 ddo = kmem_zalloc(sizeof (ddt_object_t), KM_SLEEP); in spa_config_generate()
547 dds = kmem_zalloc(sizeof (ddt_stat_t), KM_SLEEP); in spa_config_generate()
H A Dspa_errlog.c215 new = kmem_zalloc(sizeof (spa_error_entry_t), KM_SLEEP); in spa_log_error()
371 uint64_t *snap_obj_array = kmem_zalloc(snap_count * sizeof (uint64_t), in check_filesystem()
432 zc = kmem_zalloc(sizeof (zap_cursor_t), KM_SLEEP); in check_filesystem()
461 clones_t *ct = kmem_zalloc(sizeof (*ct), KM_SLEEP); in check_filesystem()
601 new = kmem_zalloc(sizeof (spa_error_entry_t), KM_SLEEP); in spa_add_healed_error()
649 new = kmem_zalloc(sizeof (spa_error_entry_t), KM_SLEEP); in spa_add_healed_error()
962 zc = kmem_zalloc(sizeof (zap_cursor_t), KM_SLEEP); in process_error_log()
1000 head_ds_cursor = kmem_zalloc(sizeof (zap_cursor_t), KM_SLEEP); in process_error_log()
H A Dsa.c415 tb = kmem_zalloc(sizeof (sa_lot_t), KM_SLEEP); in sa_add_layout_entry()
850 kmem_zalloc(count * sizeof (sa_attr_type_t), KM_SLEEP); in sa_attr_table_setup()
909 kmem_zalloc(sizeof (sa_attr_table_t) * sa_attr_count, KM_SLEEP); in sa_attr_table_setup()
935 kmem_zalloc(strlen(za->za_name) +1, KM_SLEEP); in sa_attr_table_setup()
961 kmem_zalloc(strlen(sa_legacy_attrs[i].sa_name) +1, in sa_attr_table_setup()
980 kmem_zalloc(strlen(reg_attrs[i].sa_name) + 1, KM_SLEEP); in sa_attr_table_setup()
1018 sa = kmem_zalloc(sizeof (sa_os_t), KM_SLEEP); in sa_setup()
1066 lot_attrs = kmem_zalloc(sizeof (sa_attr_type_t) * in sa_setup()
1599 bulk = kmem_zalloc(sizeof (sa_bulk_attr_t) * ZPL_END, KM_SLEEP); in sa_add_projid()
1600 attrs = kmem_zalloc(sizeof (sa_bulk_attr_t) * ZPL_END, KM_SLEEP); in sa_add_projid()
[all …]
H A Dskein_zfs.c83 Skein_512_Ctxt_t *ctx = kmem_zalloc(sizeof (*ctx), KM_SLEEP); in abd_checksum_skein_tmpl_init()
H A Dobjlist.c76 objlist_node_t *node = kmem_zalloc(sizeof (*node), KM_SLEEP); in objlist_insert()
H A Dblake3_zfs.c104 ctx = kmem_zalloc(sizeof (*ctx), KM_SLEEP); in abd_checksum_blake3_tmpl_init()
H A Dedonr_zfs.c101 ctx = kmem_zalloc(sizeof (*ctx), KM_SLEEP); in abd_checksum_edonr_tmpl_init()
H A Dzfs_onexit.c79 zo = *zop = kmem_zalloc(sizeof (zfs_onexit_t), KM_SLEEP); in zfs_onexit_init()
H A Dlzjb.c63 lempel = kmem_zalloc(LEMPEL_SIZE * sizeof (uint16_t), KM_SLEEP); in zfs_lzjb_compress_buf()
H A Dfm.c124 ev = kmem_zalloc(sizeof (zevent_t), KM_SLEEP); in zfs_zevent_alloc()
466 ze = *zep = kmem_zalloc(sizeof (zfs_zevent_t), KM_SLEEP); in zfs_zevent_init()
515 nv_alloc_t *nvhdl = kmem_zalloc(sizeof (nv_alloc_t), KM_SLEEP); in fm_nva_xcreate()
557 nvhdl = kmem_zalloc(sizeof (nv_alloc_t), KM_SLEEP); in fm_nvlist_create()
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dccompile.h101 #define vmem_zalloc kmem_zalloc
102 #define vmem_alloc kmem_zalloc
H A Dkmem.h102 #define kmem_zalloc(size, kmflags) \ macro
/freebsd/sys/cddl/dev/profile/
H A Dprofile.c304 prof = kmem_zalloc(sizeof (profile_probe_t), KM_SLEEP); in profile_create()
476 pcpu = kmem_zalloc(sizeof (profile_probe_percpu_t), KM_SLEEP); in profile_online()
552 prof->prof_pcpus = kmem_zalloc((mp_maxid + 1) * sizeof(pcpu), KM_SLEEP); in profile_enable_omni()
554 pcpu = kmem_zalloc(sizeof(profile_probe_percpu_t), KM_SLEEP); in profile_enable_omni()
/freebsd/sys/cddl/contrib/opensolaris/uts/common/dtrace/
H A Dfasttrap.c1483 new_fprc = kmem_zalloc(sizeof (fasttrap_proc_t), KM_SLEEP); in fasttrap_proc_lookup()
1663 new_fp = kmem_zalloc(sizeof (fasttrap_provider_t), KM_SLEEP); in fasttrap_provider_lookup()
1919 pp = kmem_zalloc(sizeof (fasttrap_probe_t), KM_SLEEP); in fasttrap_add_probe()
1927 tp = kmem_zalloc(sizeof (fasttrap_tracepoint_t), in fasttrap_add_probe()
1968 pp = kmem_zalloc(offsetof(fasttrap_probe_t, in fasttrap_add_probe()
1978 tp = kmem_zalloc(sizeof (fasttrap_tracepoint_t), in fasttrap_add_probe()
2149 pp = kmem_zalloc(offsetof(fasttrap_probe_t, ftp_tps[ntps]), KM_SLEEP); in fasttrap_meta_create_probe()
2162 tp = kmem_zalloc(sizeof (fasttrap_tracepoint_t), KM_SLEEP); in fasttrap_meta_create_probe()
2181 tp = kmem_zalloc(sizeof (fasttrap_tracepoint_t), KM_SLEEP); in fasttrap_meta_create_probe()
2435 fasttrap_tpoints.fth_table = kmem_zalloc(fasttrap_tpoints.fth_nent * in fasttrap_load()
[all …]
/freebsd/sys/contrib/openzfs/module/os/linux/spl/
H A Dspl-shrinker.c42 shrinker = kmem_zalloc(sizeof (struct shrinker), KM_SLEEP); in spl_register_shrinker()
H A Dspl-kstat.c438 module = kmem_zalloc(sizeof (kstat_module_t), KM_SLEEP); in kstat_create_module()
551 ksp = kmem_zalloc(sizeof (*ksp), KM_SLEEP); in __kstat_create()
607 ksp->ks_data = kmem_zalloc(ksp->ks_data_size, KM_SLEEP); in __kstat_create()
/freebsd/sys/cddl/compat/opensolaris/sys/
H A Dkmem.h85 #define kmem_zalloc(size, kmflags) zfs_kmem_alloc((size), (kmflags) | M_ZERO) macro
/freebsd/sys/contrib/openzfs/lib/libzpool/
H A Dtaskq.c259 taskq_t *tq = kmem_zalloc(sizeof (taskq_t), KM_SLEEP); in taskq_create()
352 kthread_t **kthreads = kmem_zalloc(sizeof (*kthreads) * nthreads, in taskq_create_synced()
/freebsd/sys/contrib/openzfs/module/icp/core/
H A Dkcf_prov_tabs.c206 kmem_zalloc(sizeof (kcf_provider_desc_t), KM_SLEEP); in kcf_alloc_provider_desc()

12345