Lines Matching full:hdl

99 fmd_hdl_register(fmd_hdl_t *hdl, int version, const fmd_hdl_info_t *mip)  in fmd_hdl_register()  argument
102 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_hdl_register()
116 fmd_hdl_debug(hdl, "register module"); in fmd_hdl_register()
122 fmd_hdl_unregister(fmd_hdl_t *hdl) in fmd_hdl_unregister() argument
124 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_hdl_unregister()
129 fmd_hdl_debug(hdl, "%s: %llu", msp->ms_accepted.fmds_name, in fmd_hdl_unregister()
132 fmd_hdl_debug(hdl, "%s: %llu", msp->ms_caseopen.fmds_name, in fmd_hdl_unregister()
134 fmd_hdl_debug(hdl, "%s: %llu", msp->ms_casesolved.fmds_name, in fmd_hdl_unregister()
136 fmd_hdl_debug(hdl, "%s: %llu", msp->ms_caseclosed.fmds_name, in fmd_hdl_unregister()
145 fmd_hdl_debug(hdl, "%s: %llu", in fmd_hdl_unregister()
153 fmd_hdl_debug(hdl, "unregister module"); in fmd_hdl_unregister()
162 fmd_hdl_setspecific(fmd_hdl_t *hdl, void *spec) in fmd_hdl_setspecific() argument
164 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_hdl_setspecific()
174 fmd_hdl_getspecific(fmd_hdl_t *hdl) in fmd_hdl_getspecific() argument
176 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_hdl_getspecific()
182 fmd_hdl_alloc(fmd_hdl_t *hdl, size_t size, int flags) in fmd_hdl_alloc() argument
184 (void) hdl; in fmd_hdl_alloc()
189 fmd_hdl_zalloc(fmd_hdl_t *hdl, size_t size, int flags) in fmd_hdl_zalloc() argument
191 (void) hdl; in fmd_hdl_zalloc()
196 fmd_hdl_free(fmd_hdl_t *hdl, void *data, size_t size) in fmd_hdl_free() argument
198 (void) hdl; in fmd_hdl_free()
206 fmd_hdl_debug(fmd_hdl_t *hdl, const char *format, ...) in fmd_hdl_debug() argument
210 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_hdl_debug()
223 fmd_prop_get_int32(fmd_hdl_t *hdl, const char *name) in fmd_prop_get_int32() argument
225 (void) hdl; in fmd_prop_get_int32()
241 fmd_stat_create(fmd_hdl_t *hdl, uint_t flags, uint_t nstats, fmd_stat_t *statv) in fmd_stat_create() argument
243 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_stat_create()
256 fmd_case_open(fmd_hdl_t *hdl, void *data) in fmd_case_open() argument
258 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_case_open()
263 cp = fmd_hdl_zalloc(hdl, sizeof (fmd_case_t), FMD_SLEEP); in fmd_case_open()
264 cp->ci_mod = hdl; in fmd_case_open()
274 fmd_hdl_debug(hdl, "case opened (%s)", cp->ci_uuid); in fmd_case_open()
281 fmd_case_solve(fmd_hdl_t *hdl, fmd_case_t *cp) in fmd_case_solve() argument
283 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_case_solve()
290 fmd_hdl_debug(hdl, "case is already solved or closed"); in fmd_case_solve()
294 fmd_hdl_debug(hdl, "case solved (%s)", cp->ci_uuid); in fmd_case_solve()
299 fmd_case_close(fmd_hdl_t *hdl, fmd_case_t *cp) in fmd_case_close() argument
301 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_case_close()
304 fmd_hdl_debug(hdl, "case closed (%s)", cp->ci_uuid); in fmd_case_close()
307 ops->fmdo_close(hdl, cp); in fmd_case_close()
313 fmd_hdl_free(hdl, cp->ci_bufptr, cp->ci_bufsiz); in fmd_case_close()
315 fmd_hdl_free(hdl, cp, sizeof (fmd_case_t)); in fmd_case_close()
319 fmd_case_uuresolved(fmd_hdl_t *hdl, const char *uuid) in fmd_case_uuresolved() argument
321 fmd_hdl_debug(hdl, "case resolved by uuid (%s)", uuid); in fmd_case_uuresolved()
325 fmd_case_solved(fmd_hdl_t *hdl, fmd_case_t *cp) in fmd_case_solved() argument
327 (void) hdl; in fmd_case_solved()
332 fmd_case_add_ereport(fmd_hdl_t *hdl, fmd_case_t *cp, fmd_event_t *ep) in fmd_case_add_ereport() argument
334 (void) hdl, (void) cp, (void) ep; in fmd_case_add_ereport()
398 fmd_case_add_suspect(fmd_hdl_t *hdl, fmd_case_t *cp, nvlist_t *fault) in fmd_case_add_suspect() argument
413 nvl = fmd_nvl_alloc(hdl, FMD_SLEEP); in fmd_case_add_suspect()
435 fmd_case_setspecific(fmd_hdl_t *hdl, fmd_case_t *cp, void *data) in fmd_case_setspecific() argument
437 (void) hdl; in fmd_case_setspecific()
442 fmd_case_getspecific(fmd_hdl_t *hdl, fmd_case_t *cp) in fmd_case_getspecific() argument
444 (void) hdl; in fmd_case_getspecific()
449 fmd_buf_create(fmd_hdl_t *hdl, fmd_case_t *cp, const char *name, size_t size) in fmd_buf_create() argument
455 cp->ci_bufptr = fmd_hdl_alloc(hdl, size, FMD_SLEEP); in fmd_buf_create()
460 fmd_buf_read(fmd_hdl_t *hdl, fmd_case_t *cp, in fmd_buf_read() argument
463 (void) hdl; in fmd_buf_read()
472 fmd_buf_write(fmd_hdl_t *hdl, fmd_case_t *cp, in fmd_buf_write() argument
475 (void) hdl; in fmd_buf_write()
486 fmd_serd_create(fmd_hdl_t *hdl, const char *name, uint_t n, hrtime_t t) in fmd_serd_create() argument
488 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_serd_create()
500 fmd_serd_destroy(fmd_hdl_t *hdl, const char *name) in fmd_serd_destroy() argument
502 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_serd_destroy()
506 fmd_hdl_debug(hdl, "serd_destroy %s", name); in fmd_serd_destroy()
510 fmd_serd_exists(fmd_hdl_t *hdl, const char *name) in fmd_serd_exists() argument
512 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_serd_exists()
518 fmd_serd_active(fmd_hdl_t *hdl, const char *name) in fmd_serd_active() argument
520 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_serd_active()
531 fmd_serd_reset(fmd_hdl_t *hdl, const char *name) in fmd_serd_reset() argument
533 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_serd_reset()
540 fmd_hdl_debug(hdl, "serd_reset %s", name); in fmd_serd_reset()
545 fmd_serd_record(fmd_hdl_t *hdl, const char *name, fmd_event_t *ep) in fmd_serd_record() argument
547 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_serd_record()
559 fmd_serd_gc(fmd_hdl_t *hdl) in fmd_serd_gc() argument
561 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_serd_gc()
572 fmd_hdl_t *hdl = ftp->ft_hdl; in _timer_notify() local
573 fmd_module_t *mp = (fmd_module_t *)hdl; in _timer_notify()
577 fmd_hdl_debug(hdl, "%s timer fired (%p)", mp->mod_name, ftp->ft_tid); in _timer_notify()
585 ops->fmdo_timeout(hdl, ftp, ftp->ft_arg); in _timer_notify()
594 fmd_timer_install(fmd_hdl_t *hdl, void *arg, fmd_event_t *ep, hrtime_t delta) in fmd_timer_install() argument
601 ftp = fmd_hdl_alloc(hdl, sizeof (fmd_timer_t), FMD_SLEEP); in fmd_timer_install()
603 ftp->ft_hdl = hdl; in fmd_timer_install()
619 fmd_hdl_debug(hdl, "installing timer for %d secs (%p)", in fmd_timer_install()
626 fmd_timer_remove(fmd_hdl_t *hdl, fmd_timer_t *ftp) in fmd_timer_remove() argument
628 fmd_hdl_debug(hdl, "removing timer (%p)", ftp->ft_tid); in fmd_timer_remove()
632 fmd_hdl_free(hdl, ftp, sizeof (fmd_timer_t)); in fmd_timer_remove()
638 fmd_nvl_create_fault(fmd_hdl_t *hdl, const char *class, uint8_t certainty, in fmd_nvl_create_fault() argument
641 (void) hdl; in fmd_nvl_create_fault()
703 fmd_nvl_class_match(fmd_hdl_t *hdl, nvlist_t *nvl, const char *pattern) in fmd_nvl_class_match() argument
705 (void) hdl; in fmd_nvl_class_match()
714 fmd_nvl_alloc(fmd_hdl_t *hdl, int flags) in fmd_nvl_alloc() argument
716 (void) hdl, (void) flags; in fmd_nvl_alloc()
742 fmd_module_initialized(fmd_hdl_t *hdl) in fmd_module_initialized() argument
744 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_module_initialized()
755 fmd_module_recv(fmd_hdl_t *hdl, nvlist_t *nvl, const char *class) in fmd_module_recv() argument
757 fmd_module_t *mp = (fmd_module_t *)hdl; in fmd_module_recv()
771 ops->fmdo_recv(hdl, &faux_event, nvl, class); in fmd_module_recv()