Subject: Re: kern/36660: envsys sensor names are not unique
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 07/21/2007 15:20:02
The following reply was made to PR kern/36660; it has been noted by GNATS.
From: yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi)
To: juan@xtrarom.org
Cc: gnats-bugs@NetBSD.org
Subject: Re: kern/36660: envsys sensor names are not unique
Date: Sun, 22 Jul 2007 00:17:11 +0900 (JST)
> On Sat, 21 Jul 2007 20:50:42 +0900 (JST)
> yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi) wrote:
>
> > shouldn't it be rejected by kernel as well?
>
> It is already, see envsys(4), sysmon_envsys(9) and the code
> in ENVSYS_SETDICTIONARY and sme_userret_dictionary().
>
> If you specify a sensor without a driver name, it will return an error.
% ./obj/envstat -s Temp
Temp: 40.000 degC
(with envstat.c rev.1.38)
YAMAMOTO Takashi