Subject: Re: Splitting struct device and softc
To: Matt Thomas <matt@3am-software.com>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: tech-kern
Date: 09/23/2007 16:48:43
On Sun, 23 Sep 2007 08:41:46 -0700
Matt Thomas <matt@3am-software.com> wrote:
>
> On Sep 23, 2007, at 8:21 AM, Joerg Sonnenberger wrote:
>
> > Hi all,
> > I'd like to commit the attached patch to allow converting drivers
> > on a case-by-case base to not depend on struct device being the
> > first > field. if_bge is included as sample. CFATTACH_DECL*_NEW is
> > meant as a > temporary interface until all drivers are converted
> > and should be removed after that. This is a first and critical step
> > to completely remove the > public definition of struct device (and
> > make it an abstract interface > thereby).
> >
> > Joerg
> > <softc-sep.diff>
>
> Shouldn't devices be allocated from their own pool rather than be
> malloced?
>
Why?
--Steve Bellovin, http://www.cs.columbia.edu/~smb