Lines Matching full:hdl
100 fmd_hdl_register(fmd_hdl_t *hdl, int version, const fmd_hdl_info_t *mip) in fmd_hdl_register() argument
103 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_hdl_register()
117 fmd_hdl_debug(hdl, "register module"); in fmd_hdl_register()
123 fmd_hdl_unregister(fmd_hdl_t *hdl) in fmd_hdl_unregister() argument
125 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_hdl_unregister()
130 fmd_hdl_debug(hdl, "%s: %llu", msp->ms_accepted.fmds_name, in fmd_hdl_unregister()
133 fmd_hdl_debug(hdl, "%s: %llu", msp->ms_caseopen.fmds_name, in fmd_hdl_unregister()
135 fmd_hdl_debug(hdl, "%s: %llu", msp->ms_casesolved.fmds_name, in fmd_hdl_unregister()
137 fmd_hdl_debug(hdl, "%s: %llu", msp->ms_caseclosed.fmds_name, in fmd_hdl_unregister()
146 fmd_hdl_debug(hdl, "%s: %llu", in fmd_hdl_unregister()
154 fmd_hdl_debug(hdl, "unregister module"); in fmd_hdl_unregister()
163 fmd_hdl_setspecific(fmd_hdl_t *hdl, void *spec) in fmd_hdl_setspecific() argument
165 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_hdl_setspecific()
175 fmd_hdl_getspecific(fmd_hdl_t *hdl) in fmd_hdl_getspecific() argument
177 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_hdl_getspecific()
183 fmd_hdl_alloc(fmd_hdl_t *hdl, size_t size, int flags) in fmd_hdl_alloc() argument
185 (void) hdl; in fmd_hdl_alloc()
190 fmd_hdl_zalloc(fmd_hdl_t *hdl, size_t size, int flags) in fmd_hdl_zalloc() argument
192 (void) hdl; in fmd_hdl_zalloc()
197 fmd_hdl_free(fmd_hdl_t *hdl, void *data, size_t size) in fmd_hdl_free() argument
199 (void) hdl; in fmd_hdl_free()
207 fmd_hdl_debug(fmd_hdl_t *hdl, const char *format, ...) in fmd_hdl_debug() argument
211 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_hdl_debug()
224 fmd_prop_get_int32(fmd_hdl_t *hdl, const char *name) in fmd_prop_get_int32() argument
226 (void) hdl; in fmd_prop_get_int32()
242 fmd_stat_create(fmd_hdl_t *hdl, uint_t flags, uint_t nstats, fmd_stat_t *statv) in fmd_stat_create() argument
244 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_stat_create()
257 fmd_case_open(fmd_hdl_t *hdl, void *data) in fmd_case_open() argument
259 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_case_open()
264 cp = fmd_hdl_zalloc(hdl, sizeof (fmd_case_t), FMD_SLEEP); in fmd_case_open()
265 cp->ci_mod = hdl; in fmd_case_open()
275 fmd_hdl_debug(hdl, "case opened (%s)", cp->ci_uuid); in fmd_case_open()
282 fmd_case_solve(fmd_hdl_t *hdl, fmd_case_t *cp) in fmd_case_solve() argument
284 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_case_solve()
291 fmd_hdl_debug(hdl, "case is already solved or closed"); in fmd_case_solve()
295 fmd_hdl_debug(hdl, "case solved (%s)", cp->ci_uuid); in fmd_case_solve()
300 fmd_case_close(fmd_hdl_t *hdl, fmd_case_t *cp) in fmd_case_close() argument
302 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_case_close()
305 fmd_hdl_debug(hdl, "case closed (%s)", cp->ci_uuid); in fmd_case_close()
308 ops->fmdo_close(hdl, cp); in fmd_case_close()
314 fmd_hdl_free(hdl, cp->ci_bufptr, cp->ci_bufsiz); in fmd_case_close()
316 fmd_hdl_free(hdl, cp, sizeof (fmd_case_t)); in fmd_case_close()
320 fmd_case_uuresolved(fmd_hdl_t *hdl, const char *uuid) in fmd_case_uuresolved() argument
322 fmd_hdl_debug(hdl, "case resolved by uuid (%s)", uuid); in fmd_case_uuresolved()
326 fmd_case_solved(fmd_hdl_t *hdl, fmd_case_t *cp) in fmd_case_solved() argument
328 (void) hdl; in fmd_case_solved()
333 fmd_case_add_ereport(fmd_hdl_t *hdl, fmd_case_t *cp, fmd_event_t *ep) in fmd_case_add_ereport() argument
335 (void) hdl, (void) cp, (void) ep; in fmd_case_add_ereport()
399 fmd_case_add_suspect(fmd_hdl_t *hdl, fmd_case_t *cp, nvlist_t *fault) in fmd_case_add_suspect() argument
414 nvl = fmd_nvl_alloc(hdl, FMD_SLEEP); in fmd_case_add_suspect()
436 fmd_case_setspecific(fmd_hdl_t *hdl, fmd_case_t *cp, void *data) in fmd_case_setspecific() argument
438 (void) hdl; in fmd_case_setspecific()
443 fmd_case_getspecific(fmd_hdl_t *hdl, fmd_case_t *cp) in fmd_case_getspecific() argument
445 (void) hdl; in fmd_case_getspecific()
450 fmd_buf_create(fmd_hdl_t *hdl, fmd_case_t *cp, const char *name, size_t size) in fmd_buf_create() argument
456 cp->ci_bufptr = fmd_hdl_alloc(hdl, size, FMD_SLEEP); in fmd_buf_create()
461 fmd_buf_read(fmd_hdl_t *hdl, fmd_case_t *cp, in fmd_buf_read() argument
464 (void) hdl; in fmd_buf_read()
473 fmd_buf_write(fmd_hdl_t *hdl, fmd_case_t *cp, in fmd_buf_write() argument
476 (void) hdl; in fmd_buf_write()
487 fmd_serd_create(fmd_hdl_t *hdl, const char *name, uint_t n, hrtime_t t) in fmd_serd_create() argument
489 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_serd_create()
501 fmd_serd_destroy(fmd_hdl_t *hdl, const char *name) in fmd_serd_destroy() argument
503 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_serd_destroy()
507 fmd_hdl_debug(hdl, "serd_destroy %s", name); in fmd_serd_destroy()
511 fmd_serd_exists(fmd_hdl_t *hdl, const char *name) in fmd_serd_exists() argument
513 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_serd_exists()
519 fmd_serd_active(fmd_hdl_t *hdl, const char *name) in fmd_serd_active() argument
521 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_serd_active()
532 fmd_serd_reset(fmd_hdl_t *hdl, const char *name) in fmd_serd_reset() argument
534 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_serd_reset()
541 fmd_hdl_debug(hdl, "serd_reset %s", name); in fmd_serd_reset()
546 fmd_serd_record(fmd_hdl_t *hdl, const char *name, fmd_event_t *ep) in fmd_serd_record() argument
548 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_serd_record()
560 fmd_serd_gc(fmd_hdl_t *hdl) in fmd_serd_gc() argument
562 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_serd_gc()
573 fmd_hdl_t *hdl = ftp->ft_hdl; in _timer_notify() local
574 fmd_module_t *mp = (fmd_module_t *)hdl; in _timer_notify()
578 fmd_hdl_debug(hdl, "%s timer fired (%p)", mp->mod_name, ftp->ft_tid); in _timer_notify()
586 ops->fmdo_timeout(hdl, ftp, ftp->ft_arg); in _timer_notify()
595 fmd_timer_install(fmd_hdl_t *hdl, void *arg, fmd_event_t *ep, hrtime_t delta) in fmd_timer_install() argument
602 ftp = fmd_hdl_alloc(hdl, sizeof (fmd_timer_t), FMD_SLEEP); in fmd_timer_install()
604 ftp->ft_hdl = hdl; in fmd_timer_install()
620 fmd_hdl_debug(hdl, "installing timer for %d secs (%p)", in fmd_timer_install()
627 fmd_timer_remove(fmd_hdl_t *hdl, fmd_timer_t *ftp) in fmd_timer_remove() argument
629 fmd_hdl_debug(hdl, "removing timer (%p)", ftp->ft_tid); in fmd_timer_remove()
633 fmd_hdl_free(hdl, ftp, sizeof (fmd_timer_t)); in fmd_timer_remove()
639 fmd_nvl_create_fault(fmd_hdl_t *hdl, const char *class, uint8_t certainty, in fmd_nvl_create_fault() argument
642 (void) hdl; in fmd_nvl_create_fault()
704 fmd_nvl_class_match(fmd_hdl_t *hdl, nvlist_t *nvl, const char *pattern) in fmd_nvl_class_match() argument
706 (void) hdl; in fmd_nvl_class_match()
715 fmd_nvl_alloc(fmd_hdl_t *hdl, int flags) in fmd_nvl_alloc() argument
717 (void) hdl, (void) flags; in fmd_nvl_alloc()
743 fmd_module_initialized(fmd_hdl_t *hdl) in fmd_module_initialized() argument
745 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_module_initialized()
756 fmd_module_recv(fmd_hdl_t *hdl, nvlist_t *nvl, const char *class) in fmd_module_recv() argument
758 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_module_recv()
772 ops->fmdo_recv(hdl, &faux_event, nvl, class); in fmd_module_recv()