Home | History | Annotate | Download | only in sysmon
History log of /src/sys/dev/sysmon/sysmon_envsys_util.c
RevisionDateAuthorComments
 1.7  11-Jun-2020  thorpej Update for proplib(3) API changes.
 1.6  08-Jun-2020  thorpej Update for proplib(3) API changes.
 1.5  16-Nov-2007  xtraeme Extend the envsys2 API (one more time, sorry) as defined in:

http://mail-index.netbsd.org/tech-kern/2007/11/09/0001.html

sysmon_envsys_create() and sysmon_envsys_destroy() were added to
create/destroy sysmon_envsys objects (and its TAILQ/LIST for sensors/events).

sysmon_envsys_sensor_attach() and sysmon_envsys_sensor_detach() were
added to attach/detach sensors to a specified sysmon_envsys device.

The events framework is now per device and configurable via the
ENVSYS_SETDICTIONARY ioctl or /etc/envsys.conf and envstat(8).

Update all users and documentation to reflect these changes.
 1.4  07-Oct-2007  xtraeme branches: 1.4.2; 1.4.4;
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.
 1.3  24-Sep-2007  plunky do not use _nocopy, this string is part of another object that
will be released shortly..
 1.2  21-Jul-2007  xtraeme branches: 1.2.4; 1.2.6; 1.2.8; 1.2.10; 1.2.12; 1.2.14; 1.2.16;
Some fixes for kern/36673 by yamt@:

- sme_register_sensorname: there's no need to handle empty list case.
- 'obj' argument in sme_sensor_upstring and similar functions is useless:
removed the obj argument from the functions, it's handled in the function
itself now.
- check for more errors in sme_make_dictionary() and
sysmon_envsys_createplist().
 1.1  20-Jul-2007  xtraeme Move the functions to create/update objects in a dictionary into its
own file, and DO NOT MAKE THEM inline AS IT IS WRONG.

Looks like I'm very stupid and I didn't know what inline meant.
Thank you very much YAMAMOTO Takashi.
 1.2.16.2  21-Jul-2007  xtraeme Some fixes for kern/36673 by yamt@:

- sme_register_sensorname: there's no need to handle empty list case.
- 'obj' argument in sme_sensor_upstring and similar functions is useless:
removed the obj argument from the functions, it's handled in the function
itself now.
- check for more errors in sme_make_dictionary() and
sysmon_envsys_createplist().
 1.2.16.1  21-Jul-2007  xtraeme file sysmon_envsys_util.c was added on branch matt-mips64 on 2007-07-21 12:11:28 +0000
 1.2.14.2  14-Oct-2007  yamt sync with head.
 1.2.14.1  06-Oct-2007  yamt sync with head.
 1.2.12.4  07-Dec-2007  yamt sync with head
 1.2.12.3  27-Oct-2007  yamt sync with head.
 1.2.12.2  03-Sep-2007  yamt sync with head.
 1.2.12.1  21-Jul-2007  yamt file sysmon_envsys_util.c was added on branch yamt-lazymbuf on 2007-09-03 14:38:50 +0000
 1.2.10.2  09-Jan-2008  matt sync with HEAD
 1.2.10.1  06-Nov-2007  matt sync with HEAD
 1.2.8.3  09-Oct-2007  ad Sync with head.
 1.2.8.2  20-Aug-2007  ad Sync with HEAD.
 1.2.8.1  21-Jul-2007  ad file sysmon_envsys_util.c was added on branch vmlocking on 2007-08-20 22:07:05 +0000
 1.2.6.2  15-Aug-2007  skrll Sync with HEAD.
 1.2.6.1  21-Jul-2007  skrll file sysmon_envsys_util.c was added on branch nick-csl-alignment on 2007-08-15 13:48:46 +0000
 1.2.4.3  21-Nov-2007  joerg Sync with HEAD.
 1.2.4.2  07-Oct-2007  joerg Sync with HEAD.
 1.2.4.1  02-Oct-2007  joerg Sync with HEAD.
 1.4.4.1  19-Nov-2007  mjf Sync with HEAD.
 1.4.2.1  18-Nov-2007  bouyer Sync with HEAD

RSS XML Feed