Lines Matching defs:stat

42 #include <sys/stat.h>
830 drmach_board_status(drmachid_t id, drmach_status_t *stat)
839 stat->assigned = bp->assigned;
840 stat->powered = bp->powered;
841 stat->busy = 0; /* assume not busy */
842 stat->configured = 0; /* assume not configured */
843 stat->empty = 0;
844 stat->cond = bp->cond = SBD_COND_OK;
845 (void) strncpy(stat->type, "System Brd", sizeof (stat->type));
846 stat->info[0] = '\0';
861 stat->busy |= d_stat.busy;
862 stat->configured |= d_stat.configured;
1004 drmach_status_t stat;
1006 err = drmach_board_status(id, &stat);
1013 busy |= stat.busy;
1861 drmach_status_t stat;
1868 if ((err = drmach_board_status(id, &stat)) != NULL) {
1876 if (stat.configured) {
2271 drmach_status_t stat;
2277 err = drmach_board_status(id, &stat);
2280 else if (stat.configured || stat.busy)
2325 drmach_status_t stat;
2331 err = drmach_board_status(id, &stat);
2334 else if (stat.configured || stat.busy)
2695 drmach_cpu_status(drmachid_t id, drmach_status_t *stat)
2702 stat->assigned = dp->bp->assigned;
2703 stat->powered = dp->bp->powered;
2705 stat->configured = (cpu_get(drmach_cpu_calc_id(dp)) != NULL);
2707 stat->busy = dp->busy;
2708 (void) strncpy(stat->type, dp->type, sizeof (stat->type));
2709 stat->info[0] = '\0';
2900 drmach_io_status(drmachid_t id, drmach_status_t *stat)
2913 stat->assigned = dp->bp->assigned;
2914 stat->powered = dp->bp->powered;
2915 stat->configured = (configured != 0);
2916 stat->busy = dp->busy;
2917 (void) strncpy(stat->type, dp->type, sizeof (stat->type));
2918 stat->info[0] = '\0';
3349 drmach_mem_status(drmachid_t id, drmach_status_t *stat)
3375 stat->assigned = dp->bp->assigned;
3376 stat->powered = dp->bp->powered;
3377 stat->configured = (ml != NULL);
3378 stat->busy = dp->busy;
3379 (void) strncpy(stat->type, dp->type, sizeof (stat->type));
3380 stat->info[0] = '\0';
3618 drmach_status(drmachid_t id, drmach_status_t *stat)
3626 return (cp->status(id, stat));