Lines Matching defs:hook
1971 hook_t *hook;
1973 HOOK_INIT(hook, ipobs_bounce_func, "", (void *)func);
1974 VERIFY(hook != NULL);
1980 (void) snprintf(name, sizeof (name), "ipobserve_%p", (void *)hook);
1981 hook->h_name = strdup(name);
1983 (void) net_hook_register(ipst->ips_ip4_observe_pr, NH_OBSERVE, hook);
1984 (void) net_hook_register(ipst->ips_ip6_observe_pr, NH_OBSERVE, hook);
1986 return (hook);
1990 ipobs_unregister_hook(netstack_t *ns, hook_t *hook)
1994 (void) net_hook_unregister(ipst->ips_ip4_observe_pr, NH_OBSERVE, hook);
1996 (void) net_hook_unregister(ipst->ips_ip6_observe_pr, NH_OBSERVE, hook);
1998 strfree(hook->h_name);
2000 hook_free(hook);
2254 hook_t *hook;
2258 hook = ipnet->ipnet_hook;
2261 hook) == 0);
2264 hook) == 0);
2266 strfree(hook->h_name);
2268 hook_free(hook);