Subject: Re: Maximum size for a softc?
To: Peter Seebach <email@example.com>
From: Matt Thomas <firstname.lastname@example.org>
Date: 09/15/2006 21:44:29
On Sep 15, 2006, at 2:07 PM, Peter Seebach wrote:
> I am debugging a driver with a very interesting quality: If I do
> at all to hardware, and just initialize its softc, the kernel
> panics if
> the driver is loaded. (Not always right away, but within a
> minute.) No
> interrupts or everything; just zero out the softc in foo_attach.
> If I don't initialize the softc, all is fine.
> Is it possible that the softc (which is right around 10k) is somehow
> Too Big?
Are you zeroing it? Don't. the softc the kernel gives is already
and device struct at the beginning is filled in. zeroing it would cause
the kernel to crash.