Lines Matching refs:list
9 * notice, this list of conditions and the following disclaimer.
11 * notice, this list of conditions and the following disclaimer in the
62 #define _EVENTHANDLER_INVOKE(name, list, ...) do { \
66 KASSERT((list)->el_flags & EHL_INITTED, \
67 ("eventhandler_invoke: running non-inited list")); \
68 EHL_LOCK_ASSERT((list), MA_OWNED); \
69 (list)->el_runcount++; \
70 KASSERT((list)->el_runcount > 0, \
73 TAILQ_FOREACH(_ep, &((list)->el_entries), ee_link) { \
75 EHL_UNLOCK((list)); \
80 EHL_LOCK((list)); \
83 KASSERT((list)->el_runcount > 0, \
85 (list)->el_runcount--; \
86 if ((list)->el_runcount == 0) \
87 eventhandler_prune_list(list); \
88 EHL_UNLOCK((list)); \
126 eventhandler_tag eventhandler_register(struct eventhandler_list *list,
128 void eventhandler_deregister(struct eventhandler_list *list,
131 void eventhandler_prune_list(struct eventhandler_list *list);