Subject: Re: Device open() function
To: Gary Thorpe <gathorpe79@yahoo.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-kern
Date: 01/27/2003 21:31:50
On Sun, Jan 26, 2003 at 08:16:06PM -0500, Gary Thorpe wrote:
> Hi,
> 
> I am having trouble with a device's xxxopen() function (and I assume
> all the rest are also wrong): the point at which I get the soft
> configuration structure via the device_lookup() macro found in
> sys/device.h seems to be all wrong and for devices which are configured
> it eventually panics and for devices which are not it panics right
> there. 
> 
> For example, if /dev/dev0 is the last configured device and I try to
> access /dev/dev1 it panics immediately instead of returning device not
> configured. Is this the right way to do this (it worked previously
> before I updated via SUP)?
> 
> Are there any recent documents which would explain what to do in NetBSD-current?

Looks at changes, and commit messages for other devices.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 24 ans d'experience feront toujours la difference
--