Lines Matching refs:events
91 * Allocate a new callback data structure entry and fill in the events of
102 as_add_callback(struct as *as, void (*cb_func)(), void *arg, uint_t events,
110 if ((cb_func == NULL) || ((events & AS_ALL_EVENT) == 0))
142 cb->ascb_events = events;
179 * AS_ALL_EVENT events are cleared in the entry, and a broadcast is made
200 * If the events indicate AS_CALLBACK_CALLED, just clear
201 * AS_ALL_EVENT in the events field and wakeup the thread
234 as_find_callback(struct as *as, uint_t events, caddr_t event_addr,
243 * check if events or address range pertains. An event_len
247 ((event_len != 0) && (((cb->ascb_events & events) == 0) ||
267 uint_t events)
272 ASSERT(MUTEX_HELD(&as->a_contents) && (cb->ascb_events & events));
275 (*cb->ascb_func)(as, cb->ascb_arg, events);
281 * the AS_ALL_EVENT in the events field when it is deleted.
283 * events will already be cleared and there will be no blocking.
285 while ((cb->ascb_events & events) != 0) {
334 as_do_callbacks(struct as *as, uint_t events, caddr_t event_addr,
339 if ((cb = as_find_callback(as, events, event_addr, event_len))) {
340 as_execute_callback(as, cb, events);