tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: driver(9) softc

On Thu, Jan 14, 2010 at 08:38:11PM -0600, Frank Zerangue wrote:
> Driver(9) states: "The autoconfiguration framework mandates that the
> first member of the softc structure must be the driver-independent
> struct device."

That is partially outdated. If the driver is using CFATTACH_DECL_NEW, it
tells autoconf that it has a independent softc. You can obtain the softc
from device_t via device_private(). Keeping a reference in the softc is
the equivalent.


Home | Main Index | Thread Index | Old Index