Lines Matching refs:callb
35 #include <sys/callb.h>
50 * The callb mechanism provides generic event scheduling/echoing.
51 * A callb function is registered and called on behalf of the event.
53 typedef struct callb {
54 struct callb *c_next; /* next in class or on freelist */
56 char c_flag; /* info about the callb state */
57 uchar_t c_class; /* this callb's class */
58 kcondvar_t c_done_cv; /* signal callb completion */
65 * callb c_flag bitmap definitions
72 * Basic structure for a callb table.
79 kmutex_t ct_lock; /* protect all callb states */
80 callb_t *ct_freelist; /* free callb structures */
84 callb_t *ct_first_cb[NCBCLASS]; /* ptr to 1st callb in a class */
99 * Init all callb tables in the system.
143 * Insert the new callb at the head of its class list.
181 * return -1 if fail to delete a callb entry otherwise return 0.
198 cmn_err(CE_WARN, "callb delete bogus entry 0x%p",
206 * It is not allowed to delete a callb in the middle of
217 /* clean up myself and return the free callb to the head of freelist */
228 * code: optional argument for the callb functions.
247 * cont if the callb is deleted while we're sleeping