|
Revision 3093, 1.3 kB
(checked in by mmh, 3 years ago)
|
(mmh)
This patch adds the files lib/sysfs.h and lib/sysfs.c, beginning with a rewrite
of the sysfs detection code (using libsyfs). In the process, I replaced two
poorly named globals with better names, and moved them to sysfs.c. The sysfs
detection now happens very early during library init, rather than later.
The long term plan is for the two global variables to disappear anyway, as
everything to do with sysfs should get moved into lib/sysfs.c.
|
- Property svn:eol-style set to
native
- Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
#ifndef SENSORS_LIB_PROC_H |
|---|
| 21 |
#define SENSORS_LIB_PROC_H |
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
extern int sensors_read_proc_chips(void); |
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
extern int sensors_read_proc_bus(void); |
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
extern int sensors_read_proc(sensors_chip_name name, int feature, |
|---|
| 31 |
double *value); |
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
extern int sensors_write_proc(sensors_chip_name name, int feature, |
|---|
| 35 |
double value); |
|---|
| 36 |
|
|---|
| 37 |
#endif |
|---|