Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/sys
Module Name: src
Committed By: xtraeme
Date: Sun Oct 7 04:11:17 UTC 2007
Modified Files:
src/sys/dev/sysmon: sysmon_envsys.c sysmon_envsys_events.c
sysmon_envsys_tables.c sysmon_envsys_util.c sysmon_envsysvar.h
src/sys/sys: envsys.h
Log Message:
New changes to support the new configuration file format for
envstat(8) and the envsys framework:
- Modify the ENVSYS_SETDICTIONARY ioctl to support the following
plist structure:
<dict>
<key>foo0</key>
<array>
<dict>
<key>index</key>
<string>sensor0</string>
<key>description</key>
<string>cpu temp</string>
...
Another property for this sensor
...
</dict>
...
Another dictionary for other sensor
...
</array>
...
Another device as above
...
</dict>
Multiple devices with multiple sensors can now be specified, that means
that to set the properties only one copyin(9) is needed now.
- Added the ENVSYS_REMOVEPROPS ioctl, that accepts a boolean object
"envsys-remove-props" and when set to true, all properties that were
set previously by ENVSYS_SETDICTIONARY will be removed. That means that
you can now set multiple critical limits, descriptions and all they
will be removed or changed to its default value (for rfact and
description objects).
- Added the 'index' and 'allow-rfact' objects into the sensor dictionaries,
for better interactivity with userland. To know the position of the
sensor and to know if sensor allows to change the rfact.
- Misc cosmetic changes for consistency.
- Use a two clause license for all my code.
To generate a diff of this commit:
cvs rdiff -r1.68 -r1.69 src/sys/dev/sysmon/sysmon_envsys.c
cvs rdiff -r1.35 -r1.36 src/sys/dev/sysmon/sysmon_envsys_events.c
cvs rdiff -r1.1 -r1.2 src/sys/dev/sysmon/sysmon_envsys_tables.c
cvs rdiff -r1.3 -r1.4 src/sys/dev/sysmon/sysmon_envsys_util.c
cvs rdiff -r1.19 -r1.20 src/sys/dev/sysmon/sysmon_envsysvar.h
cvs rdiff -r1.16 -r1.17 src/sys/sys/envsys.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index