Home
last modified time | relevance | path

Searched refs:da_defs (Results 1 – 3 of 3) sorted by relevance

/illumos-gate/usr/src/lib/libbsm/common/
H A Ddevalloc.c478 _def2str(da_defs_t *da_defs, char *buf, int size, const char *sep) in _def2str() argument
482 length = snprintf(buf, size, "%s%s", da_defs->devtype, sep); in _def2str()
485 if (da_defs->devopts) { in _def2str()
486 if (_kva2str(da_defs->devopts, buf + length, size - length, in _def2str()
503 _def2strentry(da_defs_t *da_defs) in _def2strentry() argument
509 if (_def2str(da_defs, sep->se_str, sizeof (sep->se_str), in _def2strentry()
529 da_defs_t *da_defs; in _build_defattrs() local
533 while ((da_defs = getdadefent()) != NULL) { in _build_defattrs()
534 rc = !(strcmp(da_defs->devtype, dargs->devinfo->devtype)); in _build_defattrs()
545 tmp_str = _def2strentry(da_defs); in _build_defattrs()
[all …]
/illumos-gate/usr/src/cmd/allocate/
H A Dallocate3.c227 print_da_defs(da_defs_t *da_defs) in print_da_defs() argument
232 if (da_defs->devopts == NULL) { in print_da_defs()
233 dprintf("No default attributes for %s\n", da_defs->devtype); in print_da_defs()
236 (void) printf("dev_type=%s\n", da_defs->devtype); in print_da_defs()
237 if (_kva2str(da_defs->devopts, optbuf, sizeof (optbuf), KV_ASSIGN, in print_da_defs()
492 da_defs_t *da_defs; in list_devices() local
525 da_defs = getdadeftype(device); in list_devices()
526 if (da_defs == NULL) { in list_devices()
532 error = print_da_defs(da_defs); in list_devices()
533 freedadefent(da_defs); in list_devices()
[all …]
H A Dadd_allocatable.c395 da_defs_t *da_defs = NULL; in check_args() local
419 if (da_defs = getdadeftype(devinfo->devtype)) { in check_args()
420 kva = da_defs->devopts; in check_args()
429 freedadefent(da_defs); in check_args()