Lines Matching refs:callb
34 #include <sys/callb.h>
46 * The callb mechanism provides generic event scheduling/echoing.
47 * A callb function is registered and called on behalf of the event.
49 typedef struct callb {
50 struct callb *c_next; /* next in class or on freelist */
52 char c_flag; /* info about the callb state */
53 uchar_t c_class; /* this callb's class */
54 kcondvar_t c_done_cv; /* signal callb completion */
62 * callb c_flag bitmap definitions
69 * Basic structure for a callb table.
76 kmutex_t ct_lock; /* protect all callb states */
77 callb_t *ct_freelist; /* free callb structures */
81 callb_t *ct_first_cb[NCBCLASS]; /* ptr to 1st callb in a class */
96 * Init all callb tables in the system.
123 tsleep(ct, 0, "callb", hz / 4);
167 * Insert the new callb at the head of its class list.
205 * return -1 if fail to delete a callb entry otherwise return 0.
222 cmn_err(CE_WARN, "callb delete bogus entry 0x%p",
230 * It is not allowed to delete a callb in the middle of
241 /* clean up myself and return the free callb to the head of freelist */
252 * code: optional argument for the callb functions.
271 * cont if the callb is deleted while we're sleeping