Home
last modified time | relevance | path

Searched refs:g_malloc (Results 1 – 25 of 26) sorted by relevance

12

/freebsd/sys/geom/
H A Dgeom_ccd.c362 cs->sc_itable = g_malloc(size, M_WAITOK | M_ZERO); in ccdinterleave()
376 ii->ii_index = g_malloc(sizeof(int), M_WAITOK); in ccdinterleave()
398 ii->ii_index = g_malloc((sizeof(int) * cs->sc_ndisks), in ccdinterleave()
772 sc = g_malloc(sizeof *sc, M_WAITOK | M_ZERO); in g_ccd_create()
777 sc->sc_cinfo = g_malloc(sc->sc_ndisks * sizeof(struct ccdcinfo), in g_ccd_create()
H A Dgeom_slice.c60 gsp = g_malloc(sizeof *gsp, M_WAITOK | M_ZERO); in g_slice_alloc()
62 gsp->softc = g_malloc(scsize, M_WAITOK | M_ZERO); in g_slice_alloc()
65 gsp->slices = g_malloc(nslice * sizeof(struct g_slice), in g_slice_alloc()
466 gsl2 = g_malloc((idx + 1) * sizeof *gsl2, M_WAITOK | M_ZERO); in g_slice_conf_hot()
H A Dgeom_subr.c270 hh = g_malloc(sizeof *hh, M_WAITOK | M_ZERO); in g_modevent()
354 hh = g_malloc(sizeof *hh, M_WAITOK | M_ZERO); in g_retaste()
384 gp = g_malloc(sizeof *gp, M_WAITOK | M_ZERO); in g_new_geomf()
385 gp->name = g_malloc(sbuf_len(sb) + 1, M_WAITOK | M_ZERO); in g_new_geomf()
531 cp = g_malloc(sizeof *cp, M_WAITOK | M_ZERO); in g_new_consumer()
620 pp = g_malloc(sizeof *pp + sbuf_len(sb) + 1, M_WAITOK | M_ZERO); in g_new_providerf()
659 gap = g_malloc(sizeof(*gap) + sbuf_len(sb) + 1, M_WAITOK | M_ZERO); in g_provider_add_alias()
752 hh = g_malloc(sizeof *hh, M_WAITOK | M_ZERO); in g_resize_provider()
H A Dgeom_ctl.c175 ptr = g_malloc(len, M_WAITOK); in geom_alloc_copyin()
241 p = g_malloc(ap[i].len, M_WAITOK | M_ZERO); in gctl_copyin()
524 gps = g_malloc((n + 1) * sizeof(*gps), M_WAITOK); in g_ctl_getxml()
H A Dgeom_event.c149 args = g_malloc(sizeof *args, flag); in g_attr_changed()
344 return (g_malloc(sizeof(struct g_event), flag | M_ZERO)); in g_alloc_event()
H A Dgeom_disk.c625 buf = g_malloc(DISK_IDENT_SIZE, M_WAITOK); in g_disk_dumpconf()
720 sc = g_malloc(sizeof(*sc), M_WAITOK | M_ZERO); in g_disk_create()
871 dp = g_malloc(sizeof(struct disk), M_WAITOK | M_ZERO); in disk_alloc()
943 dap = (struct disk_alias *)g_malloc( in disk_add_alias()
H A Dgeom_dev.c263 physpath = g_malloc(physpath_len, M_WAITOK|M_ZERO); in g_dev_set_physpath()
359 sc = g_malloc(sizeof(*sc), M_WAITOK | M_ZERO); in g_dev_taste()
690 new_entries = g_malloc(alloc_size, in g_dev_ioctl()
H A Dgeom.h367 g_malloc(int size, int flags) in g_malloc() function
H A Dgeom_io.c894 ptr = g_malloc(length, M_WAITOK); in g_read_data()
/freebsd/sys/geom/union/
H A Dg_union.c250 sc = g_malloc(sizeof(*sc), M_WAITOK | M_ZERO); in g_union_ctl_create()
330 sc->sc_writemap_root = g_malloc(sc->sc_root_size * sizeof(uint64_t *), in g_union_ctl_create()
334 sc->sc_leafused = g_malloc(roundup(sc->sc_root_size, BITS_PER_ENTRY), in g_union_ctl_create()
338 g_malloc(sc->sc_leaf_size * sizeof(uint64_t), in g_union_ctl_create()
638 bp->bio_data = g_malloc(MAXBSIZE, M_WAITOK); in g_union_ctl_commit()
805 wip = g_malloc(sizeof(*wip), M_NOWAIT); in g_union_start()
/freebsd/sys/geom/part/
H A Dg_part_gpt.c475 hdr = g_malloc(sz, M_WAITOK | M_ZERO); in gpt_read_hdr()
567 buf = g_malloc(sectors * pp->sectorsize, M_WAITOK | M_ZERO); in gpt_read_tbl()
587 tbl = g_malloc(hdr->hdr_entries * sizeof(struct gpt_ent), in gpt_read_tbl()
714 table->hdr = g_malloc(sizeof(struct gpt_hdr), M_WAITOK | M_ZERO); in g_part_gpt_create()
1234 buf = g_malloc(pp->sectorsize, M_WAITOK | M_ZERO); in g_part_gpt_write()
1242 buf = g_malloc((tblsz + 1) * pp->sectorsize, M_WAITOK | M_ZERO); in g_part_gpt_write()
H A Dg_part_apm.c540 buf = g_malloc(pp->sectorsize, M_WAITOK | M_ZERO); in g_part_apm_write()
552 buf = g_malloc(tblsz * pp->sectorsize, M_WAITOK | M_ZERO); in g_part_apm_write()
H A Dg_part_ldm.c709 blk = g_malloc(sizeof(*blk), M_WAITOK | M_ZERO); in ldm_xvblk_handle()
712 blk->data = g_malloc(blk->size, M_WAITOK | M_ZERO); in ldm_xvblk_handle()
779 blk = g_malloc(sizeof(*blk), M_WAITOK | M_ZERO); in ldm_vblk_handle()
H A Dg_part_bsd.c215 table->bbarea = g_malloc(BBSIZE, M_WAITOK | M_ZERO); in g_part_bsd_create()
H A Dg_part_ebr.c645 buf = g_malloc(pp->sectorsize, M_WAITOK | M_ZERO); in g_part_ebr_write()
H A Dg_part_bsd64.c622 dlp = g_malloc(sz, M_WAITOK | M_ZERO); in g_part_bsd64_write()
H A Dg_part.c456 entry = g_malloc(table->gpt_scheme->gps_entrysz, in g_part_new_entry()
796 entry = (delent == NULL) ? g_malloc(table->gpt_scheme->gps_entrysz, in g_part_ctl_add()
904 buf = g_malloc(pp->sectorsize, M_WAITOK | M_ZERO); in g_part_ctl_commit()
/freebsd/sys/geom/bde/
H A Dg_bde.c
/freebsd/sys/geom/nop/
H A Dg_nop.c297 gndelay = g_malloc(sizeof(*gndelay), M_NOWAIT | M_ZERO); in g_nop_start()
420 sc = g_malloc(sizeof(*sc), M_WAITOK | M_ZERO); in g_nop_create()
/freebsd/sys/geom/multipath/
H A Dg_multipath.c553 sc = g_malloc(sizeof(*sc), M_WAITOK | M_ZERO); in g_multipath_create()
803 buf = g_malloc(pp->sectorsize, M_WAITOK | M_ZERO); in g_multipath_write_metadata()
1401 buf = g_malloc(pp->sectorsize, M_WAITOK | M_ZERO); in g_multipath_ctl_destroy()
/freebsd/sys/geom/mirror/
H A Dg_mirror_ctl.c666 disks = g_malloc(sizeof(*disks) * (*nargs), M_WAITOK | M_ZERO); in g_mirror_ctl_insert()
747 sector = g_malloc(pp->sectorsize, M_WAITOK | M_ZERO); in g_mirror_ctl_insert()
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dvdev_geom.c102 physpath = g_malloc(physpath_len, M_WAITOK|M_ZERO); in vdev_geom_set_physpath()
889 elem = g_malloc(sizeof (*elem), M_WAITOK|M_ZERO); in vdev_geom_open()
/freebsd/sys/geom/raid3/
H A Dg_raid3_ctl.c507 sector = g_malloc(pp->sectorsize, M_WAITOK); in g_raid3_ctl_insert()
/freebsd/sys/geom/mountver/
H A Dg_mountver.c295 sc = g_malloc(sizeof(*sc), M_WAITOK | M_ZERO); in g_mountver_create()
/freebsd/sys/geom/cache/
H A Dg_cache.c508 sc = g_malloc(sizeof(*sc), M_WAITOK | M_ZERO); in g_cache_create()

12