Changeset 5060 for lm-sensors/trunk/doc/developers/applications
- Timestamp:
- 12/02/07 14:42:26 (9 months ago)
- Files:
-
- lm-sensors/trunk/doc/developers/applications (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lm-sensors/trunk/doc/developers/applications
r4500 r5060 45 45 Documentation/i2c/dev-interface in the linux kernel sources. 46 46 Note that these used to be defined in <linux/i2c-dev.h> in the kernel 47 source tree. However, userspace applications are not supposed to 47 source tree. However, userspace applications are not supposed to 48 48 include kernel headers, so the inline functions were removed from 49 49 the kernel file in recent kernels. Use the header file in this package … … 95 95 3B. sysfs access (2.6 kernels) 96 96 ------------------------------ 97 Chip drivers using the i2c-sensormodule create subdirectories in97 Chip drivers using the hwmon module create subdirectories in 98 98 the sysfs filesystem (usually /sys) which can be accessed 99 99 directly by applications. 100 100 Naming and content standards for the entries in these subdirectories 101 is documented in the file Documentation/ i2c/sysfs-interface in the101 is documented in the file Documentation/hwmon/sysfs-interface in the 102 102 2.6 kernel source tree. Note that these standards may not be 103 103 strictly followed. … … 109 109 for any driver, including ISA chip drivers. 110 110 111 This method may also work swell for shell and perl scripts111 This method may also work well for shell and perl scripts 112 112 written to access a specific device. Note that sysfs is 113 113 standard in 2.6 kernels. … … 120 120 facilities, consider the libsensors library, below. 121 121 122 For an example sof a program using /sys accesses, see gkrellm.122 For an example of a program using /sys accesses, see gkrellm. 123 123 See also lib/proc.c and prog/dump/i2cbusses.c for examples. 124 124 The sysfsutils package may also be helpful. … … 149 149 Contact us if you wish to discuss your application. 150 150 151 For an example sof a program using libsensors accesses, see151 For an example of a program using libsensors accesses, see 152 152 prog/sensors/sensors. Also search freshmeat for sensors applications. 153 153
