6
8
const char *get_disk_protect_queue(const char *);
13
char *left_fan_status;
14
char *right_fan_status;
21
struct i8k_struct i8k;
23
10
char *get_ioscheduler(char *);
24
11
int get_laptop_mode(void);
25
13
void update_gateway_info(void);
14
void free_gateway_info(void);
15
int gateway_exists(void);
16
void print_gateway_iface(char *, int);
17
void print_gateway_ip(char *, int);
27
19
enum { PB_BATT_STATUS, PB_BATT_PERCENT, PB_BATT_TIME };
28
20
void get_powerbook_batt_info(char *, size_t, int);
30
int open_sysfs_sensor(const char *dir, const char *dev, const char *type, int n,
31
int *divisor, char *devtype);
33
#define open_i2c_sensor(dev, type, n, divisor, devtype) \
34
open_sysfs_sensor("/sys/bus/i2c/devices/", dev, type, n, divisor, devtype)
35
#define open_platform_sensor(dev, type, n, divisor, devtype) \
36
open_sysfs_sensor("/sys/bus/platform/devices/", dev, type, n, divisor, devtype)
37
#define open_hwmon_sensor(dev, type, n, divisor, devtype) \
38
open_sysfs_sensor("/sys/class/hwmon/", dev, type, n, divisor, devtype)
40
double get_sysfs_info(int *fd, int arg, char *devtype, char *type);
22
void parse_i2c_sensor(struct text_object *, const char *);
23
void parse_hwmon_sensor(struct text_object *, const char *);
24
void parse_platform_sensor(struct text_object *, const char *);
25
void print_sysfs_sensor(struct text_object *, char *, int );
26
void free_sysfs_sensor(struct text_object *);
28
int get_entropy_avail(unsigned int *);
29
int get_entropy_poolsize(unsigned int *);
31
void update_stat(void);
42
33
#endif /* _LINUX_H */