|
Packit Service |
23242a |
/*
|
|
Packit Service |
23242a |
sysfs.h - part of libsensors, a library for reading Linux sensor data
|
|
Packit Service |
23242a |
Copyright (C) Mark M. Hoffman <mhoffman@lightlink.com>
|
|
Packit Service |
23242a |
Copyright (C) 2007-2010 Jean Delvare <jdelvare@suse.de>
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
This library is free software; you can redistribute it and/or
|
|
Packit Service |
23242a |
modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
23242a |
License as published by the Free Software Foundation; either
|
|
Packit Service |
23242a |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
This library is distributed in the hope that it will be useful,
|
|
Packit Service |
23242a |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
23242a |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit Service |
23242a |
GNU Lesser General Public License for more details.
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
You should have received a copy of the GNU General Public License
|
|
Packit Service |
23242a |
along with this program; if not, write to the Free Software
|
|
Packit Service |
23242a |
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
Packit Service |
23242a |
MA 02110-1301 USA.
|
|
Packit Service |
23242a |
*/
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
#ifndef LIB_SENSORS_SYSFS_H
|
|
Packit Service |
23242a |
#define LIB_SENSORS_SYSFS_H
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
extern char sensors_sysfs_mount[];
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
int sensors_init_sysfs(void);
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
int sensors_read_sysfs_chips(void);
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
int sensors_read_sysfs_bus(void);
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
/* Read a value out of a sysfs attribute file */
|
|
Packit Service |
23242a |
int sensors_read_sysfs_attr(const sensors_chip_name *name,
|
|
Packit Service |
23242a |
const sensors_subfeature *subfeature,
|
|
Packit Service |
23242a |
double *value);
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
/* Write a value to a sysfs attribute file */
|
|
Packit Service |
23242a |
int sensors_write_sysfs_attr(const sensors_chip_name *name,
|
|
Packit Service |
23242a |
const sensors_subfeature *subfeature,
|
|
Packit Service |
23242a |
double value);
|
|
Packit Service |
23242a |
|
|
Packit Service |
23242a |
#endif /* def LIB_SENSORS_SYSFS_H */
|