Subject: CVS commit: src/sys/dev/sysmon
To: None <source-changes@NetBSD.org>
From: Juan Romero Pardines <xtraeme@netbsd.org>
List: source-changes
Date: 09/08/2007 00:21:43
Module Name:	src
Committed By:	xtraeme
Date:		Sat Sep  8 00:21:43 UTC 2007

Modified Files:
	src/sys/dev/sysmon: sysmon_envsys.c sysmonvar.h

Log Message:
- Build unconditionally compatibility code, there's no point to have it
  disabled, because some drivers depend in the old code yet.
- Use a new mutex for sysmon_envsys_next_sensor_index (used in
  compatibility code), otherwise bad things happen with LKMs. Thanks
  to this, the hack for LKMs has been removed.
- Check in advance if the driver doesn't exist already on the list
  before adding the sensors in the dictionary.
- Don't forget to call sme_event_unregister_all() if
  sysmon_envsys_unregister() fails after adding the array into the global
  dictionary or when creating sensors.
- Modify and add some DPRINTFs.

The lm(4) lkm works without known problems registering and unregistering
it multiple times.


To generate a diff of this commit:
cvs rdiff -r1.55 -r1.56 src/sys/dev/sysmon/sysmon_envsys.c
cvs rdiff -r1.17 -r1.18 src/sys/dev/sysmon/sysmonvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.