Lines Matching defs:head

223 static int hook_insert(hook_int_head_t *head, hook_int_t *new);
224 static void hook_insert_plain(hook_int_head_t *head, hook_int_t *new);
225 static int hook_insert_afterbefore(hook_int_head_t *head, hook_int_t *new);
226 static hook_int_t *hook_find_byname(hook_int_head_t *head, char *name);
232 static int hook_notify_register(hook_notify_head_t *head,
234 static int hook_notify_unregister(hook_notify_head_t *head,
236 static void hook_notify_run(hook_notify_head_t *head, char *family,
919 /* Add to family list head */
1347 /* Add to event list head */
1918 /* Add to hook list head */
1946 * Parameters: head(I) - pointer to hook list to insert hook onto
1956 hook_insert(hook_int_head_t *head, hook_int_t *new)
1974 TAILQ_FOREACH(hi, head, hi_entry) {
1989 TAILQ_INSERT_AFTER(head, before, new, hi_entry);
1992 hook_insert_plain(head, new);
1996 hi = TAILQ_FIRST(head);
1999 TAILQ_INSERT_HEAD(head, new, hi_entry);
2003 hi = TAILQ_LAST(head, hook_int_head);
2006 TAILQ_INSERT_TAIL(head, new, hi_entry);
2010 hi = hook_find_byname(head, (char *)new->hi_hook.h_hintvalue);
2012 return (hook_insert_afterbefore(head, new));
2021 hi = hook_find_byname(head, (char *)new->hi_hook.h_hintvalue);
2023 return (hook_insert_afterbefore(head, new));
2028 TAILQ_INSERT_AFTER(head, hi, new, hi_entry);
2041 * Parameters: head(I) - pointer to hook list to insert hook onto
2050 hook_insert_plain(hook_int_head_t *head, hook_int_t *new)
2054 hi = TAILQ_FIRST(head);
2059 TAILQ_INSERT_TAIL(head, new, hi_entry);
2062 TAILQ_INSERT_TAIL(head, new, hi_entry);
2069 * Parameters: head(I) - pointer to hook list to insert hook onto
2083 hook_insert_afterbefore(hook_int_head_t *head, hook_int_t *new)
2098 TAILQ_FOREACH(hi, head, hi_entry) {
2109 TAILQ_INSERT_AFTER(head, hi, new, hi_entry);
2123 TAILQ_INSERT_AFTER(head, hi, new, hi_entry);
2136 hook_insert_plain(head, new);
2229 hook_find_byname(hook_int_head_t *head, char *name)
2233 TAILQ_FOREACH(hi, head, hi_entry) {
2471 * Parameters: head(I) - top of the list of callbacks
2480 hook_notify_register(hook_notify_head_t *head, hook_notify_fn_t callback,
2485 TAILQ_FOREACH(hn, head, hn_entry) {
2494 TAILQ_INSERT_TAIL(head, hn, hn_entry);
2512 hook_notify_unregister(hook_notify_head_t *head,
2519 TAILQ_FOREACH(hn, head, hn_entry) {
2529 TAILQ_REMOVE(head, hn, hn_entry);
2539 * Parameters: head(I) - top of the list of callbacks
2557 hook_notify_run(hook_notify_head_t *head, char *family, char *event,
2562 TAILQ_FOREACH(hn, head, hn_entry) {