Subject: Re: writing a device driver
To: maximum entropy <>
From: Jared D. McNeill <>
List: tech-kern
Date: 04/16/2002 00:31:18
On Mon, 15 Apr 2002, maximum entropy wrote:
> You need to define this in your driver.  It will probably look
> something like this:
> struct cfattach xxx_ca = {
>        sizeof(struct xxx_softc), xxxprobe, xxxattach
> };
> This structure then gets placed in the cfdata array by config(8), so
> the kernel will know how to probe and attach your driver.

Please, although it's not necessary, write an xxxdetach routine as well
for this driver. Even if the device can not be physically removed at
runtime, it is still a requirement for loadable kernel modules to function