Lines Matching defs:stat

42 #include <sys/stat.h>
427 static sbd_error_t *drmach_i_status(drmachid_t id, drmach_status_t *stat);
1232 drmach_board_status(drmachid_t id, drmach_status_t *stat)
1262 stat->assigned = bp->assigned = shb.bd_assigned;
1263 stat->powered = bp->powered = shb.power_on;
1264 stat->empty = bp->empty = shb.slot_empty;
1270 stat->cond = bp->cond = SBD_COND_UNKNOWN;
1273 stat->cond = bp->cond = SBD_COND_OK;
1276 stat->cond = bp->cond = SBD_COND_FAILED;
1279 stat->cond = bp->cond = SBD_COND_UNKNOWN;
1286 (void) strncpy(stat->type, shb.board_type, sizeof (stat->type));
1287 (void) snprintf(stat->info, sizeof (stat->info),
1290 stat->assigned = bp->assigned;
1291 stat->powered = bp->powered;
1292 stat->empty = bp->empty;
1293 stat->cond = bp->cond;
1294 (void) strncpy(stat->type, bp->type, sizeof (stat->type));
1297 stat->busy = 0; /* assume not busy */
1298 stat->configured = 0; /* assume not configured */
1312 stat->busy |= d_stat.busy;
1313 stat->configured |= d_stat.configured;
4918 drmach_status_t stat;
4924 err = drmach_board_status(id, &stat);
4926 if (stat.configured || stat.busy)
5103 drmach_status_t stat;
5114 err = drmach_board_status(id, &stat);
5120 if (stat.configured || stat.busy) {
5565 drmach_cpu_status(drmachid_t id, drmach_status_t *stat)
5574 stat->assigned = dp->bp->assigned;
5575 stat->powered = dp->bp->powered;
5577 stat->configured = (cpu_get(cp->cpuid) != NULL);
5579 stat->busy = dp->busy;
5580 (void) strncpy(stat->type, dp->type, sizeof (stat->type));
5581 stat->info[0] = '\0';
6176 drmach_io_status(drmachid_t id, drmach_status_t *stat)
6189 stat->assigned = dp->bp->assigned;
6190 stat->powered = dp->bp->powered;
6191 stat->configured = (configured != 0);
6192 stat->busy = dp->busy;
6193 (void) strncpy(stat->type, dp->type, sizeof (stat->type));
6194 stat->info[0] = '\0';
6769 drmach_mem_status(drmachid_t id, drmach_status_t *stat)
6795 stat->assigned = mp->dev.bp->assigned;
6796 stat->powered = mp->dev.bp->powered;
6797 stat->configured = (ml != NULL);
6798 stat->busy = mp->dev.busy;
6799 (void) strncpy(stat->type, mp->dev.type, sizeof (stat->type));
6800 stat->info[0] = '\0';
7015 drmach_status(drmachid_t id, drmach_status_t *stat)
7029 err = cp->status(id, stat);
7035 drmach_i_status(drmachid_t id, drmach_status_t *stat)
7043 return (cp->status(id, stat));