Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../../usr/include/fm/topo_facility.h
Real path: /usr/include/fm/topo_facility.h
Zurück
/* * Copyright (c) 2012, 2020, Oracle and/or its affiliates. All rights reserved. */ #ifndef _TOPO_FACILITY_H #define _TOPO_FACILITY_H #ifdef __cplusplus extern "C" { #endif #include <fm/topo_mod.h> #include <fm/libtopo.h> typedef struct facility_prop { const char *fp_name; /* name of property */ data_type_t fp_type; /* data type of property */ const void *fp_value; /* value for property */ } facility_prop_t; typedef struct facility_method_desc { const char *fmd_name; /* name of method */ facility_prop_t *fmd_inputs; /* null-term list of props */ const char *fmd_out_prop; /* property the method yields */ topo_type_t fmd_out_type; /* type of output prop val */ } facility_method_desc_t; typedef struct facility_desc { const char *fd_name; /* name of the facility */ const char *fd_fac_type; /* sensor or indicator */ uint_t fd_type; /* type of sensor/indicator */ const topo_method_t *fd_methods; /* methods to register */ } facility_desc_t; typedef struct facility_sensor_desc { facility_desc_t fsd_desc; /* generic facility desc */ const char *fsd_class; /* class (e.g., "discrete") */ facility_method_desc_t *fsd_state; /* state method */ facility_method_desc_t *fsd_reading; /* reading method, if avail */ topo_sensor_unit_t fsd_units; /* units prop for fac node */ } facility_sensor_desc_t; typedef struct facility_indicator_desc { facility_desc_t fid_desc; /* generic facility desc */ facility_method_desc_t *fid_mode; /* mode property */ } facility_indicator_desc_t; extern int topo_mod_facility_bind_sensor(topo_mod_t *__mod, tnode_t *__pnode, facility_sensor_desc_t *__facsd); extern int topo_mod_facility_bind_indicator(topo_mod_t *__mod, tnode_t *__pnode, facility_indicator_desc_t *__facid); extern int topo_fac_enter(topo_hdl_t *__thp); extern void topo_fac_exit(topo_hdl_t *__thp); #ifdef __cplusplus } #endif #endif /* _TOPO_FACILITY_H */