Lines Matching refs:hn
2483 hook_notify_t *hn; in hook_notify_register() local
2485 TAILQ_FOREACH(hn, head, hn_entry) { in hook_notify_register()
2486 if (hn->hn_func == callback) { in hook_notify_register()
2491 hn = (hook_notify_t *)kmem_alloc(sizeof (*hn), KM_SLEEP); in hook_notify_register()
2492 hn->hn_func = callback; in hook_notify_register()
2493 hn->hn_arg = arg; in hook_notify_register()
2494 TAILQ_INSERT_TAIL(head, hn, hn_entry); in hook_notify_register()
2515 hook_notify_t *hn; in hook_notify_unregister() local
2519 TAILQ_FOREACH(hn, head, hn_entry) { in hook_notify_unregister()
2520 if (hn->hn_func == callback) in hook_notify_unregister()
2524 if (hn == NULL) in hook_notify_unregister()
2527 *parg = hn->hn_arg; in hook_notify_unregister()
2529 TAILQ_REMOVE(head, hn, hn_entry); in hook_notify_unregister()
2531 kmem_free(hn, sizeof (*hn)); in hook_notify_unregister()
2560 hook_notify_t *hn; in hook_notify_run() local
2562 TAILQ_FOREACH(hn, head, hn_entry) { in hook_notify_run()
2563 (*hn->hn_func)(cmd, hn->hn_arg, family, event, name); in hook_notify_run()