Lines Matching refs:hi_hook
819 ASSERT(hi->hi_hook.h_func != NULL); in hook_run()
824 rval = (*hi->hi_hook.h_func)(token, info, hi->hi_hook.h_arg); in hook_run()
1735 h->hi_hook.h_name); in hook_event_notify_register()
1812 h->hi_hook.h_name); in hook_event_notify_unregister()
1961 hook_t *h = &new->hi_hook; in hook_insert()
1963 switch (new->hi_hook.h_hint) { in hook_insert()
1975 hih = &hi->hi_hook; in hook_insert()
1997 if ((hi != NULL) && (hi->hi_hook.h_hint == HH_FIRST)) in hook_insert()
2004 if ((hi != NULL) && (hi->hi_hook.h_hint == HH_LAST)) in hook_insert()
2010 hi = hook_find_byname(head, (char *)new->hi_hook.h_hintvalue); in hook_insert()
2014 if (hi->hi_hook.h_hint == HH_FIRST) in hook_insert()
2021 hi = hook_find_byname(head, (char *)new->hi_hook.h_hintvalue); in hook_insert()
2025 if (hi->hi_hook.h_hint == HH_LAST) in hook_insert()
2056 if (hi->hi_hook.h_hint == HH_LAST) { in hook_insert_plain()
2089 nh = &new->hi_hook; in hook_insert_afterbefore()
2090 ASSERT(new->hi_hook.h_hint != HH_NONE); in hook_insert_afterbefore()
2091 ASSERT(new->hi_hook.h_hint != HH_LAST); in hook_insert_afterbefore()
2092 ASSERT(new->hi_hook.h_hint != HH_FIRST); in hook_insert_afterbefore()
2099 h = &hi->hi_hook; in hook_insert_afterbefore()
2234 if (strcmp(hi->hi_hook.h_name, name) == 0) in hook_find_byname()
2286 dst = &new->hi_hook; in hook_copy()
2351 hi->hi_hook.h_name, "hook", KSTAT_TYPE_NAMED, in hook_init_kstats()
2357 hi->hi_kstats.hook_version.value.i32 = hi->hi_hook.h_version; in hook_init_kstats()
2358 hi->hi_kstats.hook_flags.value.ui32 = hi->hi_hook.h_flags; in hook_init_kstats()
2359 hi->hi_kstats.hook_hint.value.i32 = hi->hi_hook.h_hint; in hook_init_kstats()
2363 switch (hi->hi_hook.h_hint) { in hook_init_kstats()
2367 (const char *)hi->hi_hook.h_hintvalue); in hook_init_kstats()
2406 if (hi->hi_hook.h_name != NULL) { in hook_int_free()
2407 kmem_free(hi->hi_hook.h_name, strlen(hi->hi_hook.h_name) + 1); in hook_int_free()
2414 switch (hi->hi_hook.h_hint) { in hook_int_free()
2417 len = strlen((char *)hi->hi_hook.h_hintvalue); in hook_int_free()
2419 kmem_free((void *)hi->hi_hook.h_hintvalue, len + 1); in hook_int_free()