Bugfix: memory and thread-deleting problems
[monky] / src / linux.h
1 /* -*- mode: c; c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*- */
2
3 #ifndef _LINUX_H
4 #define _LINUX_H
5
6 #include "common.h"
7
8 const char *get_disk_protect_queue(const char *);
9
10 char *get_ioscheduler(char *);
11 int get_laptop_mode(void);
12
13 int 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);
18
19 enum { PB_BATT_STATUS, PB_BATT_PERCENT, PB_BATT_TIME };
20 void get_powerbook_batt_info(char *, size_t, int);
21
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 *);
27
28 int get_entropy_avail(unsigned int *);
29 int get_entropy_poolsize(unsigned int *);
30
31 int update_stat(void);
32
33 #endif /* _LINUX_H */