>> Hm, I think this a bad choice. Which are 'all the other drivers'? The >> probe should really be as thin as possible to avoid unnecessary delays >> when probing in a kernel, like GENERIC, with a lot of device drivers >> compiled in. > >Well, in the PCI drivers, it is just the meteor, the brooktree848 >and the Xilinx PGA driver (xrpu) > >In the /sys/i386/isa drivers, there were quite a few.
The isa drivers provide many bad examples. Most of them attached the devsw in a disgusting SYSINIT even if the device is disabled. I moved the devsw attach to the device attach function in some drivers that I worked on. This was necessary to support pcvt and syscons sharing a devsw entry. Bruce To Unsubscribe: send mail to majord...@freebsd.org with "unsubscribe freebsd-current" in the body of the message