2
* rd_sensors.h: Include file used to read sensors statistics
3
* (C) 1999-2011 by Sebastien Godard (sysstat <at> orange.fr)
12
***************************************************************************
13
* Definitions of structures for sensors statistics
14
***************************************************************************
18
* Structure for fan statistics.
20
struct stats_pwr_fan {
21
double rpm __attribute__ ((aligned (8)));
22
double rpm_min __attribute__ ((aligned (8)));
23
char device[MAX_SENSORS_DEV_LEN] __attribute__ ((aligned (8)));
26
#define STATS_PWR_FAN_SIZE (sizeof(struct stats_pwr_fan))
29
* Structure for device temperature statistics.
31
struct stats_pwr_temp {
32
double temp __attribute__ ((aligned (8)));
33
double temp_min __attribute__ ((aligned (8)));
34
double temp_max __attribute__ ((aligned (8)));
35
char device[MAX_SENSORS_DEV_LEN] __attribute__ ((aligned (8)));
38
#define STATS_PWR_TEMP_SIZE (sizeof(struct stats_pwr_temp))
41
* Structure for voltage inputs statistics.
44
double in __attribute__ ((aligned (8)));
45
double in_min __attribute__ ((aligned (8)));
46
double in_max __attribute__ ((aligned (8)));
47
char device[MAX_SENSORS_DEV_LEN] __attribute__ ((aligned (8)));
50
#define STATS_PWR_IN_SIZE (sizeof(struct stats_pwr_in))
53
***************************************************************************
54
* Prototypes for functions used to read sensors statistics
55
***************************************************************************
59
read_fan(struct stats_pwr_fan *, int);
61
read_temp(struct stats_pwr_temp *, int);
63
read_in(struct stats_pwr_in *, int);
66
***************************************************************************
67
* Prototypes for functions used to count number of items
68
***************************************************************************
78
#endif /* _RD_SENSORS_H */