Lines Matching refs:ap
141 struct autopush *ap = (struct autopush *)val;
143 ASSERT(ap->ap_cnt > 0);
144 if (--(ap->ap_cnt) == 0)
145 kmem_free(ap, sizeof (struct autopush));
187 sad_ap_verify(struct autopush *ap)
191 if ((ret = sad_apc_verify(&ap->ap_common)) != 0)
198 for (i = 0; i < ap->ap_npush; i++) {
199 ap->ap_list[i][FMNAMESZ] = '\0';
200 if (fmodsw_find(ap->ap_list[i], FMODSW_LOAD) == NULL)
217 sad_ap_rele(struct autopush *ap, str_stack_t *ss)
220 ASSERT(ap->ap_cnt > 0);
221 if (--(ap->ap_cnt) == 0) {
223 kmem_free(ap, sizeof (struct autopush));
230 sad_ap_insert(struct autopush *ap, str_stack_t *ss)
233 ASSERT(sad_apc_verify(&ap->ap_common) == 0);
234 ASSERT(sad_ap_find(&ap->ap_common, ss) == NULL);
235 (void) mod_hash_insert(ss->ss_sad_hash, &ap->ap_common, ap);
239 sad_ap_remove(struct autopush *ap, str_stack_t *ss)
244 (void) mod_hash_remove(ss->ss_sad_hash, &ap->ap_common,
246 ASSERT(ap == ap_removed);