Subject: Re: CVS commit: syssrc
To: None <thorpej@zembu.com>
From: Lennart Augustsson <lennart@augustsson.net>
List: port-i386
Date: 12/21/2000 18:34:21
Jason R Thorpe wrote:
> You can already mark the device as unusable! Take the case of an Ethernet
> device, for example. If the attach fails, don't call if_attach(). That
> will nicely prevent the device from being used.
I'd prefer if the general device framework kept track of if the device is
functional. That way I don't have to have my own flag in the driver and
test it on every entry point to the driver.
The autoconf code could also print a consistent message for non-functioning
devices.
But it's a minor issue, I don't have a real problem with the current approach.
I just think it could be slightly improved.
--
-- Lennart