Lines Matching defs:sndrstat

91 		sndrstat_t *sndrstat = NULL;
135 sndrstat = (sndrstat_t *)calloc(1, sizeof (sndrstat_t));
141 sndrstat->pre_set = kstat_retrieve(kc, ksp);
143 if (sndrstat->pre_set == NULL)
146 sndrstat->collected |= GOT_SET_KSTAT;
154 sndrstat->pre_bmp = kstat_retrieve(kc, bmp_ksp);
156 if (sndrstat->pre_bmp == NULL)
159 sndrstat->collected |= GOT_BMP_KSTAT;
167 sndrstat->pre_sec = kstat_retrieve(kc, sec_ksp);
169 if (sndrstat->pre_sec == NULL)
172 sndrstat->collected |= GOT_SEC_KSTAT;
178 if (sndrstat == NULL)
181 if (SNDR_COMPLETE(sndrstat->collected)) {
182 (void) sndr_del_stat(sndrstat);
189 sndr_add_stat(sndrstat);
514 * sndrstat_t *sndrstat - to be added to the list.
518 sndr_add_stat(sndrstat_t *sndrstat)
524 sndr_top = sndrstat;
532 tst_vname = kstat_value(sndrstat->pre_set, RDC_IKSTAT_FILE);
540 cur->next = sndrstat;
548 sndrstat->next = cur->next;
549 cur->next = sndrstat;
554 sndr_top = sndrstat;
556 sndrstat->next = cur;
568 * sndrstat_t *sndrstat - structure to be deallocated
577 sndr_del_stat(sndrstat_t *sndrstat)
580 sndrstat_t *next = sndrstat->next;
582 kstat_free(sndrstat->pre_set);
583 kstat_free(sndrstat->pre_bmp);
584 kstat_free(sndrstat->pre_sec);
585 kstat_free(sndrstat->cur_set);
586 kstat_free(sndrstat->cur_bmp);
587 kstat_free(sndrstat->cur_sec);
589 free(sndrstat);
599 * sndrstat_t *sndrstat - structure to be checked
606 sndr_value_check(sndrstat_t *sndrstat)
608 if (SNDR_COMPLETE(sndrstat->collected))
611 if (io_value_check(sndrstat->pre_bmp->ks_data,
612 sndrstat->cur_bmp->ks_data)) {
616 if (io_value_check(sndrstat->pre_sec->ks_data,
617 sndrstat->cur_sec->ks_data)) {