summaryrefslogtreecommitdiff
path: root/doc/libsensors-API.txt
Commit message (Collapse)AuthorAgeFilesLines
* libsensors: Add support for temp[1-*]_min_hyst and temp[1-*]_lcrit_hystkhali2014-04-221-0/+3
| | | | | | | | | Add support for sysfs attributes temp[1-*]_min_hyst (already implemented by drivers adt7x10, lm77 and lm92) and temp[1-*]_lcrit_hyst (no known users yet.) git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6244 7894878c-1315-0410-8ee3-d5d059ff63e0
* libsensors: Get rid of arbitrary limit on per-type sensor countkhali2014-01-291-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When gathering the attributes of each hwmon chip, libsensors uses a temporary structure in memory to order and group all the attributes into features. This temporary structure used to be a single array with room for every possible attribute/subfeature. While simple, this approach required to predefine a maximum number of per-type sensor that could be handled. In order to get rid of this arbitrary limit, which we hit and had to raise three times already, I changed the temporary structure to an array of dynamically allocated per-type subattribute arrays. This lets us not allocate any memory for types which aren't implemented by a given chip, and more importantly, this lets us reallocate room for more attributes of a given type as needed. I decided to allocate chunks of 8 attributes at a time, as this seemed a good compromise between two frequent reallocations and over-provisioning. It could be tweaked if needed. Icing on the cake, I benchmarked this change on two different systems and it results in performance gains. The total heap usage as reported by valgrind is down by 50% on average, with peak memory consumption (as reported by valgrind's massif) also down by 43% on average. The total instructions count (as reported by valgrind's callgrind) is down by 11% on average, with measured execution time also down by a few percents. Valgrind rocks, BTW. I have some ideas to optimize the memory allocations further, but I do not expect such a huge gain from them. They may not even improve peak memory consumption as massif shows the peak is somewhere else now at least in some cases. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6218 7894878c-1315-0410-8ee3-d5d059ff63e0
* Prepare for release.khali2014-01-221-1/+1
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6212 7894878c-1315-0410-8ee3-d5d059ff63e0
* Prepare for release.khali2013-05-271-1/+1
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6176 7894878c-1315-0410-8ee3-d5d059ff63e0
* Prepare for release.khali2012-11-061-1/+1
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6087 7894878c-1315-0410-8ee3-d5d059ff63e0
* Prepare for release.khali2012-03-141-1/+1
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6035 7894878c-1315-0410-8ee3-d5d059ff63e0
* Add support for fan[1-*]_max, fan[1-*]_min_alarm and fan[1-*]_max_alarmkhali2012-03-061-0/+3
| | | | | | | | | attributes. These are defined in the standard sysfs interface for quite some time, and at least three drivers (max6650, lm63 and applesmc) implement them so we should support them. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6029 7894878c-1315-0410-8ee3-d5d059ff63e0
* Add support for additional sysfs attributes to libsensors and to sensors commandgroeck2012-01-091-0/+10
| | | | | | | | | | | | | | | | inX_average inX_lowest inX_highest tempX_lowest tempX_highest currX_average currX_lowest currX_highest git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@6007 7894878c-1315-0410-8ee3-d5d059ff63e0
* Prepare for release.khali2011-07-211-1/+1
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5986 7894878c-1315-0410-8ee3-d5d059ff63e0
* Prepare for release.khali2011-03-281-1/+1
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5949 7894878c-1315-0410-8ee3-d5d059ff63e0
* Added support for SENSORS_SUBFEATURE_FAN_PULSES to libsensors.groeck2011-03-041-0/+1
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5938 7894878c-1315-0410-8ee3-d5d059ff63e0
* Added support for humidity sensors to libsensorsgroeck2011-02-131-0/+3
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5918 7894878c-1315-0410-8ee3-d5d059ff63e0
* Add support for recently added sysfs ABI attributesgroeck2011-02-091-0/+12
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5917 7894878c-1315-0410-8ee3-d5d059ff63e0
* Added support for new sysfs attributesgroeck2010-12-141-0/+10
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5898 7894878c-1315-0410-8ee3-d5d059ff63e0
* libsensors: Add support for intrusion detection.khali2010-11-031-0/+6
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5879 7894878c-1315-0410-8ee3-d5d059ff63e0
* Prepare for release.khali2010-10-101-0/+3
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5863 7894878c-1315-0410-8ee3-d5d059ff63e0
* Prepare for release.khali2010-02-021-1/+1
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5819 7894878c-1315-0410-8ee3-d5d059ff63e0
* Add support for HID devices.khali2009-10-181-0/+4
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5786 7894878c-1315-0410-8ee3-d5d059ff63e0
* libsensors: New method to free the memory allocated for the internalkhali2009-06-201-0/+4
| | | | | | | | | representation of chip names. sensord, sensors: Fix a memory leak when one or more chip names are provided on the command line. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5740 7894878c-1315-0410-8ee3-d5d059ff63e0
* Set library version to 4.1.0.khali2009-02-251-1/+1
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5663 7894878c-1315-0410-8ee3-d5d059ff63e0
* Include the configuration file name when reporting parse errors.khali2009-02-151-0/+4
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5649 7894878c-1315-0410-8ee3-d5d059ff63e0
* Add ACPI busjwrdegoede2009-01-131-0/+2
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5593 7894878c-1315-0410-8ee3-d5d059ff63e0
* Detect excessive recursion depth during expression evaluation.khali2009-01-111-0/+2
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5582 7894878c-1315-0410-8ee3-d5d059ff63e0
* Add support for current sensors.khali2008-10-241-0/+9
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5379 7894878c-1315-0410-8ee3-d5d059ff63e0
* Add support for instantaneous power sensors.khali2008-10-241-0/+6
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5378 7894878c-1315-0410-8ee3-d5d059ff63e0
* Prepare for release.khali2008-09-281-1/+1
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5346 7894878c-1315-0410-8ee3-d5d059ff63e0
* Prepare for release.khali2008-05-181-1/+1
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5254 7894878c-1315-0410-8ee3-d5d059ff63e0
* Minor readability adjustments.khali2008-04-171-11/+9
| | | | git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5186 7894878c-1315-0410-8ee3-d5d059ff63e0
* Subject: [PATCH 1/3 v3] libsensors: Support energy and power metersdjwong2008-04-171-0/+10
| | | | | | | | | | | Add power and sensor meters to libsensors, with minor tweaks and documentation updates as suggested by Jean Delvare. Signed-off-by: Darrick J. Wong <djwong@us.ibm.com> git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5183 7894878c-1315-0410-8ee3-d5d059ff63e0
* Add support for virtual hwmon devices. This closes Red Hat bug #437637khali2008-04-141-0/+14
and ticket #2305. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@5176 7894878c-1315-0410-8ee3-d5d059ff63e0