Lines Matching defs:event

70  * add hooks to the event or add notifiers for when the contents of the
94 * the removal of either the event or family. In practise, what this means
140 * a hook on an event through net_hook_register(), an implicit reference
148 * A more detailed picture that describes how the family/event structures
153 * For each of the hook stack, hook family and hook event, it is possible
156 * a network protocol and a hook event to IP packets on the input path.
176 * physical_in event to inet, the module looking to enforce a security
184 * actual hooks that are added or removed from an event. In practice,
211 static hook_event_int_t *hook_event_find(hook_family_int_t *hfi, char *event);
229 char *event, char *name, hook_notify_cmd_t cmd);
237 char *event, char *name, hook_notify_cmd_t cmd);
633 * a hook family) then generate a fake HN_REGISTER event by directly
671 * Generate fake register event for callback that
701 * a fake unregister event is delivered to the callback being removed
731 * Generate fake unregister event for callback that
767 * with the cmd (HN_REGISTER or HN_UNREGISTER), one for the event and one
770 * integer to a string and for the event just pass NULL.
789 * Parameters: token(I) - event pointer
1152 * callback to be activated each time a new event is added to this
1211 * Remove a callback from the list of those executed when a new event is
1213 * destroyed then simulate an unregister callback for each event that is
1218 * of the notify operation when an event is added or removed from the
1284 * Returns: internal event pointer - NULL = Fail
1286 * he(I) - event pointer
1288 * Add new event to event list on specific family.
1290 * enough memory for its own internal data structures, (2) the event has
1317 /* Check whether this event pointer is already registered */
1347 /* Add to event list head */
1363 * Parameters: hfi(I) - pointer to the family that owns this event.
1364 * hei(I) - pointer to the hook event that needs some kstats.
1366 * Create a set of kstats that relate to each event registered with
1367 * the hook framework. A counter is kept for each time the event is
1403 * he(I) - event pointer
1405 * Remove event from event list on specific family
1428 * the event at the same time.
1453 * If there are any hooks still registered for this event or
1455 * that the event is still busy.
1465 * hook from an event.
1497 * he(I) - event pointer
1500 * as if the event was being removed but not actually do the remove.
1516 * the event at the same time.
1550 * Parameters: hei(I) - internal event pointer
1552 * Free alloc memory for event
1564 * Remove the event from the hook family's list.
1593 * Returns: internal event pointer - NULL = Not match
1594 * Parameters: he(I) - event pointer
1596 * Search all of the hook families to see if the event being passed in
1623 * Returns: internal event pointer - NULL = Failed
1624 * Parameters: src(I) - event pointer
1626 * Allocate internal event block and duplicate incoming event
1648 * Returns: internal event pointer - NULL = Not match
1650 * event(I) - event name string
1652 * Search event list with event name
1656 hook_event_find(hook_family_int_t *hfi, char *event)
1661 ASSERT(event != NULL);
1664 if ((strcmp(hei->hei_event->he_name, event) == 0) &&
1675 * event(I) - name of the event
1679 * Adds a new callback to the event named by "event" (we must find it)
1680 * that will be executed each time a new hook is added to the event.
1684 hook_event_notify_register(hook_family_int_t *hfi, char *event,
1709 hei = hook_event_find(hfi, event);
1749 * event(I) - name of the event
1752 * Remove the given callback from the named event's list of functions
1756 hook_event_notify_unregister(hook_family_int_t *hfi, char *event,
1770 hei = hook_event_find(hfi, event);
1787 * event but couldn't because there were still things attached to
1838 * Execute all of the callbacks registered for this event.
1842 char *event, char *name, hook_notify_cmd_t cmd)
1846 event, name, cmd);
1853 * event(I) - event name string
1856 * Add new hook to hook list on the specified family and event.
1859 hook_register(hook_family_int_t *hfi, char *event, hook_t *h)
1866 ASSERT(event != NULL);
1878 * Since hook add/remove only impact event, so it is unnecessary
1880 * ensure event will not be removed when doing hooks operation
1884 hei = hook_event_find(hfi, event);
1895 * more hooks to be added to this event.
1936 hook_event_notify_run(hei, hfi, event, h->h_name, HN_REGISTER);
2145 * event(I) - event name string
2148 * Remove hook from hook list on specific family, event
2151 hook_unregister(hook_family_int_t *hfi, char *event, hook_t *h)
2162 hei = hook_event_find(hfi, event);
2168 /* Hold write lock for event */
2193 * no notifiers on the event (and we've removed the last
2194 * hook) then we need to free this event after we're done.
2208 hook_event_notify_run(hei, hfi, event, h->h_name, HN_UNREGISTER);
2222 * Parameters: hei(I) - internal event pointer
2225 * Search an event's list of hooks to see if there is a hook present that
2244 * Parameters: hei(I) - internal event pointer
2247 * Search an event's list of hooks to see if there is already one that
2316 * Parameters: hfi(I) - pointer to the family that owns the event.
2317 * hei(I) - pointer to the event that owns this hook
2540 * family(I) - name of the hook family that owns the event
2541 * event(I) - name of the event being changed
2547 * and the name of the family (that owns the event), event (the thing
2557 hook_notify_run(hook_notify_head_t *head, char *family, char *event,
2563 (*hn->hn_func)(cmd, hn->hn_arg, family, event, name);