Subject: Re: devd-alike for NetBSD
To: Jachym Holecek <freza@liberouter.org>
From: Pavel Cahyna <pcah8322@artax.karlin.mff.cuni.cz>
List: tech-kern
Date: 02/08/2005 20:24:24
Hello,
> Hmm, they basically dump "struct device" as it seems. They are unable to
> pass any PNP information about the device, which limits usability I think.
> With this approach, it could end up like:
>
> struct dvannounce {
> char name[...];
> ...
> union {
> struct pci_attach_args pci;
> struct pcmcia_attach_args pcmcia;
> struct usb_attach_args usb;
> ...
> };
> };
>
> That seems less extensible and more fragile then textual format. Plus
> the demon would need to be updated every time you added a new bus...
Would passing the struct cfdata (with all the arrays and strings like
*cf_name and *cf_loc) instead of all the attach_args work?
Bye Pavel