2 sysfs.h - part of libsensors, a library for reading Linux sensor data
3 Copyright (C) Mark M. Hoffman <mhoffman@lightlink.com>
4 Copyright (C) 2007-2010 Jean Delvare <jdelvare@suse.de>
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU Lesser General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22 #ifndef SENSORS_LIB_SYSFS_H
23 #define SENSORS_LIB_SYSFS_H
25 extern char sensors_sysfs_mount[];
27 int sensors_init_sysfs(void);
29 int sensors_read_sysfs_chips(void);
31 int sensors_read_sysfs_bus(void);
33 /* Read a value out of a sysfs attribute file */
34 int sensors_read_sysfs_attr(const sensors_chip_name *name,
35 const sensors_subfeature *subfeature,
38 /* Write a value to a sysfs attribute file */
39 int sensors_write_sysfs_attr(const sensors_chip_name *name,
40 const sensors_subfeature *subfeature,
43 #endif /* !SENSORS_LIB_SYSFS_H */