Subject: CVS commit: src/sys
To: None <source-changes@NetBSD.org>
From: Juan Romero Pardines <xtraeme@netbsd.org>
List: source-changes
Date: 07/17/2007 16:47:58
Module Name:	src
Committed By:	xtraeme
Date:		Tue Jul 17 16:47:58 UTC 2007

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

Log Message:
Skip sensors with the same description on the same device at attach time,
if the description of it is not unique, mark the sensor with
ENVSYS_FDUPDESC, return EEXIST and continue.

Also, when changing a description, check that the new description is not
assigned by any other sensor, otherwise return EEXIST.

Note that these restrictions are only per device. Fixes PR kern/36660.


To generate a diff of this commit:
cvs rdiff -r1.22 -r1.23 src/sys/dev/sysmon/sysmon_envsys.c
cvs rdiff -r1.12 -r1.13 src/sys/sys/envsys.h

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