Lines Matching refs:dm

209 check_devs(devmap_t *dm)  in check_devs()  argument
214 if (dm->dmap_devarray == NULL) in check_devs()
216 for (file = dm->dmap_devarray; *file != NULL; file++) { in check_devs()
248 print_dev_attrs(int optflag, devalloc_t *da, devmap_t *dm, in print_dev_attrs() argument
254 (void) printf("device=%s%s", dm->dmap_devname, KV_DELIMITER); in print_dev_attrs()
255 (void) printf("type=%s%s", dm->dmap_devtype, KV_DELIMITER); in print_dev_attrs()
281 (void) printf("files=%s", dm->dmap_devlist); in print_dev_attrs()
286 print_dev(devmap_t *dm) in print_dev() argument
290 (void) printf(gettext("device: %s "), dm->dmap_devname); in print_dev()
291 (void) printf(gettext("type: %s "), dm->dmap_devtype); in print_dev()
293 file = dm->dmap_devarray; in print_dev()
310 devmap_t *dm; in _list_device() local
316 if ((dm = getdmapnam(da->da_devname)) == NULL) { in _list_device()
328 print_dev_attrs(optflag, da, dm, &fi); in _list_device()
330 print_dev(dm); in _list_device()
335 if ((error = _dev_file_name(&sf, dm)) != 0) { in _list_device()
336 freedmapent(dm); in _list_device()
470 if (check_devs(dm) == -1) { in _list_device()
475 print_dev_attrs(optflag, da, dm, &fi); in _list_device()
477 print_dev(dm); in _list_device()
482 freedmapent(dm); in _list_device()
1008 devmap_t *dm = NULL, *dm_new = NULL; in _deallocate_dev() local
1021 dm = dm_new; in _deallocate_dev()
1023 dm = dm_in; in _deallocate_dev()
1026 if (_dev_file_name(&sf, dm) != 0) { in _deallocate_dev()
1106 if ((remove_znode(devzone, dm) != 0) && in _deallocate_dev()
1113 if ((error = mk_unalloc(optflag, dm)) != 0) { in _deallocate_dev()
1135 (void) mk_error(dm); in _deallocate_dev()
1158 devmap_t *dm; in _allocate_dev() local
1166 if ((dm = getdmapnam(da->da_devname)) == NULL) { in _allocate_dev()
1174 if (_dev_file_name(&sf, dm) != 0) { in _allocate_dev()
1175 freedmapent(dm); in _allocate_dev()
1229 if (check_devs(dm) == -1) { in _allocate_dev()
1239 if (_deallocate_dev(dealloc_optflag, da, dm, uid, in _allocate_dev()
1274 (void) mk_error(dm); in _allocate_dev()
1293 if (create_znode(zonename, &zpath, dm) != 0) { in _allocate_dev()
1300 (void) audit_allocate_list(dm->dmap_devlist); in _allocate_dev()
1302 if ((error = mk_alloc(dm, uid, &zpath)) != 0) { in _allocate_dev()
1303 (void) mk_unalloc(optflag, dm); in _allocate_dev()
1322 freedmapent(dm); in _allocate_dev()
1560 _dev_file_name(struct state_file *sfp, devmap_t *dm) in _dev_file_name() argument
1564 if (dm->dmap_devlist[0] == '`') in _dev_file_name()
1566 if (dm->dmap_devarray == NULL || in _dev_file_name()
1567 dm->dmap_devarray[0] == NULL) in _dev_file_name()
1569 (void) strncpy(sfp->sf_path, dm->dmap_devarray[0], in _dev_file_name()
1574 dm->dmap_devname); in _dev_file_name()
1783 remove_znode(char *zonename, devmap_t *dm) in remove_znode() argument
1791 file = dm->dmap_devarray; in remove_znode()