Home
last modified time | relevance | path

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

12345

/freebsd-13.1/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dsid.h46 kd = kmem_zalloc(sizeof (ksiddomain_t), KM_SLEEP); in ksid_lookupdomain()
47 kd->kd_name = kmem_zalloc(len + 1, KM_SLEEP); in ksid_lookupdomain()
H A Dkmem.h178 #define kmem_zalloc(sz, fl) spl_kmem_zalloc((sz), (fl), __func__, __LINE__) macro
/freebsd-13.1/sys/contrib/openzfs/module/zfs/
H A Ddmu_redact.c212 struct objnode *obj = kmem_zalloc(sizeof (*obj), KM_SLEEP); in zfs_get_deleteq()
286 record = kmem_zalloc(sizeof (struct redact_record), in redact_cb()
318 record = kmem_zalloc(sizeof (struct redact_record), KM_SLEEP); in redact_cb()
375 data = kmem_zalloc(sizeof (*data), KM_SLEEP); in redact_traverse_thread()
739 record = kmem_zalloc(sizeof (struct redact_record), in perform_thread_merge()
749 redact_nodes = kmem_zalloc(num_threads * in perform_thread_merge()
791 record = kmem_zalloc(sizeof (struct redact_record), in perform_thread_merge()
845 struct redact_record *rec = kmem_zalloc(sizeof (*rec), KM_SLEEP); in redact_merge_thread()
1015 newredactbook = kmem_zalloc(sizeof (char) * ZFS_MAX_DATASET_NAME_LEN, in dmu_redact_snap()
1034 args = kmem_zalloc(numsnaps * sizeof (*args), KM_SLEEP); in dmu_redact_snap()
[all …]
H A Dspa_config.c208 temp = kmem_zalloc(MAXPATHLEN, KM_SLEEP); in spa_config_write()
516 ddh = kmem_zalloc(sizeof (ddt_histogram_t), KM_SLEEP); in spa_config_generate()
523 ddo = kmem_zalloc(sizeof (ddt_object_t), KM_SLEEP); in spa_config_generate()
530 dds = kmem_zalloc(sizeof (ddt_stat_t), KM_SLEEP); in spa_config_generate()
H A Dsa.c414 tb = kmem_zalloc(sizeof (sa_lot_t), KM_SLEEP); in sa_add_layout_entry()
849 kmem_zalloc(count * sizeof (sa_attr_type_t), KM_SLEEP); in sa_attr_table_setup()
933 kmem_zalloc(strlen(za.za_name) +1, KM_SLEEP); in sa_attr_table_setup()
958 kmem_zalloc(strlen(sa_legacy_attrs[i].sa_name) +1, in sa_attr_table_setup()
977 kmem_zalloc(strlen(reg_attrs[i].sa_name) + 1, KM_SLEEP); in sa_attr_table_setup()
1015 sa = kmem_zalloc(sizeof (sa_os_t), KM_SLEEP); in sa_setup()
1062 lot_attrs = kmem_zalloc(sizeof (sa_attr_type_t) * in sa_setup()
1555 bulk = kmem_zalloc(sizeof (sa_bulk_attr_t) * ZPL_END, KM_SLEEP); in sa_add_projid()
1556 attrs = kmem_zalloc(sizeof (sa_bulk_attr_t) * ZPL_END, KM_SLEEP); in sa_add_projid()
1746 idx_tab = kmem_zalloc(sizeof (sa_idx_tab_t), KM_SLEEP); in sa_find_idx_tab()
[all …]
H A Dskein_zfs.c85 ctx = kmem_zalloc(sizeof (*ctx), KM_SLEEP); in abd_checksum_skein_tmpl_init()
H A Dobjlist.c75 objlist_node_t *node = kmem_zalloc(sizeof (*node), KM_SLEEP); in objlist_insert()
H A Dedonr_zfs.c102 ctx = kmem_zalloc(sizeof (*ctx), KM_SLEEP); in abd_checksum_edonr_tmpl_init()
H A Dfm.c123 ev = kmem_zalloc(sizeof (zevent_t), KM_SLEEP); in zfs_zevent_alloc()
467 ze = *zep = kmem_zalloc(sizeof (zfs_zevent_t), KM_SLEEP); in zfs_zevent_init()
490 return (kmem_zalloc(size, KM_SLEEP)); in i_fm_alloc()
516 nv_alloc_t *nvhdl = kmem_zalloc(sizeof (nv_alloc_t), KM_SLEEP); in fm_nva_xcreate()
558 nvhdl = kmem_zalloc(sizeof (nv_alloc_t), KM_SLEEP); in fm_nvlist_create()
H A Dzfs_onexit.c78 zo = *zop = kmem_zalloc(sizeof (zfs_onexit_t), KM_SLEEP); in zfs_onexit_init()
H A Dlzjb.c61 lempel = kmem_zalloc(LEMPEL_SIZE * sizeof (uint16_t), KM_SLEEP); in lzjb_compress()
H A Dzfs_fm.c579 spare_paths = kmem_zalloc(sizeof (char *) * spare_count, in zfs_ereport_start()
581 spare_guids = kmem_zalloc(sizeof (uint64_t) * spare_count, in zfs_ereport_start()
841 zfs_ecksum_info_t *eip = kmem_zalloc(sizeof (*eip), KM_SLEEP); in annotate_ecksum()
1152 report = kmem_zalloc(sizeof (*report), KM_SLEEP); in zfs_ereport_start_checksum()
1158 report->zcr_ckinfo = kmem_zalloc(sizeof (*info), KM_SLEEP); in zfs_ereport_start_checksum()
/freebsd-13.1/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dkmod_core.c145 zc = kmem_zalloc(sizeof (zfs_cmd_t), KM_SLEEP); in zfsdev_ioctl()
155 zcl = kmem_zalloc(sizeof (zfs_cmd_legacy_t), KM_SLEEP); in zfsdev_ioctl()
222 zs = kmem_zalloc(sizeof (zfsdev_state_t), KM_SLEEP); in zfs_ctldev_init()
/freebsd-13.1/sys/contrib/openzfs/module/icp/core/
H A Dkcf_prov_tabs.c87 prov_tab = kmem_zalloc(prov_tab_max * sizeof (kcf_provider_desc_t *), in kcf_prov_tab_init()
307 desc = kmem_zalloc(sizeof (kcf_provider_desc_t), KM_SLEEP); in kcf_alloc_provider_desc()
333 desc->pd_ops_vector = kmem_zalloc(sizeof (crypto_ops_t), KM_SLEEP); in kcf_alloc_provider_desc()
344 desc->pd_mechanisms = kmem_zalloc(sizeof (crypto_mech_info_t) * in kcf_alloc_provider_desc()
535 p = kmem_zalloc(n, KM_SLEEP); in kcf_get_slot_list()
H A Dkcf_mech_tabs.c442 prov_mech = kmem_zalloc(sizeof (kcf_prov_mech_desc_t), KM_SLEEP); in kcf_add_mech_provider()
478 mil = kmem_zalloc(sizeof (*mil), KM_SLEEP); in kcf_add_mech_provider()
479 mil2 = kmem_zalloc(sizeof (*mil2), KM_SLEEP); in kcf_add_mech_provider()
/freebsd-13.1/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzpl_inode.c145 vap = kmem_zalloc(sizeof (vattr_t), KM_SLEEP); in zpl_create()
196 vap = kmem_zalloc(sizeof (vattr_t), KM_SLEEP); in zpl_mknod()
241 vap = kmem_zalloc(sizeof (vattr_t), KM_SLEEP); in zpl_tmpfile()
316 vap = kmem_zalloc(sizeof (vattr_t), KM_SLEEP); in zpl_mkdir()
447 vap = kmem_zalloc(sizeof (vattr_t), KM_SLEEP); in zpl_setattr()
526 vap = kmem_zalloc(sizeof (vattr_t), KM_SLEEP); in zpl_symlink()
586 iov.iov_base = kmem_zalloc(MAXPATHLEN, KM_SLEEP); in zpl_get_link_common()
H A Dzfs_ioctl_os.c110 zs = kmem_zalloc(sizeof (zfsdev_state_t), KM_SLEEP); in zfsdev_state_init()
190 zc = kmem_zalloc(sizeof (zfs_cmd_t), KM_SLEEP); in zfsdev_ioctl()
H A Dzfs_sysfs.c172 zkobj->zko_attr_list = kmem_zalloc(ATTR_TABLE_SIZE(attr_cnt), in zfs_kobj_init()
178 zkobj->zko_default_attrs = kmem_zalloc(DEFAULT_ATTR_SIZE(attr_cnt), in zfs_kobj_init()
191 zkobj->zko_children = kmem_zalloc(CHILD_TABLE_SIZE(child_cnt), in zfs_kobj_init()
/freebsd-13.1/sys/cddl/dev/profile/
H A Dprofile.c323 prof = kmem_zalloc(sizeof (profile_probe_t), KM_SLEEP); in profile_create()
495 pcpu = kmem_zalloc(sizeof (profile_probe_percpu_t), KM_SLEEP); in profile_online()
571 prof->prof_pcpus = kmem_zalloc((mp_maxid + 1) * sizeof(pcpu), KM_SLEEP); in profile_enable_omni()
573 pcpu = kmem_zalloc(sizeof(profile_probe_percpu_t), KM_SLEEP); in profile_enable_omni()
/freebsd-13.1/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dccompile.h192 #define vmem_zalloc kmem_zalloc
193 #define vmem_alloc kmem_zalloc
H A Dkmem.h93 #define kmem_zalloc(size, kmflags) \ macro
/freebsd-13.1/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()
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()
2453 fasttrap_provs.fth_table = kmem_zalloc(fasttrap_provs.fth_nent * in fasttrap_load()
[all …]
/freebsd-13.1/sys/cddl/compat/opensolaris/sys/
H A Dkmem.h87 #define kmem_zalloc(size, kmflags) zfs_kmem_alloc((size), (kmflags) | M_ZERO) macro
/freebsd-13.1/sys/contrib/openzfs/include/os/linux/kernel/linux/
H A Dvfs_compat.h60 bdi = kmem_zalloc(sizeof (struct backing_dev_info), KM_SLEEP); in zpl_bdi_setup()
87 bdi = kmem_zalloc(sizeof (struct backing_dev_info), KM_SLEEP); in zpl_bdi_setup()
/freebsd-13.1/sys/contrib/openzfs/module/icp/algs/modes/
H A Decb.c123 if ((ecb_ctx = kmem_zalloc(sizeof (ecb_ctx_t), kmflag)) == NULL) in ecb_alloc_ctx()

12345