Subject: Re: ifnet specific data
To: YAMAMOTO Takashi <firstname.lastname@example.org>
From: Bill Studenmund <email@example.com>
Date: 09/18/2006 18:56:29
Content-Type: text/plain; charset=us-ascii
On Tue, Sep 19, 2006 at 07:34:32AM +0900, YAMAMOTO Takashi wrote:
> > Yes & no. What we could do is have the dictionary and have shadow=20
> > variables. Change the dict, and the shadow variables change too. Think =
> > these variables as caching the result of key lookups. While we can't lo=
> > in the dictionary in interrupt context, if we do it right, we _can_ loo=
> > at the shadow variables. Put another way, as long as we don't do it wro=
> > we can read the shadow variables.
> > This does mean we need to know when the dictionary changes (as long as =
> > driver gets called, not hard). Also, it means that the dictionary can't=
> > contain state that needs gathering at interrupt context. Though I doubt=
> > anyone would use a properties dictionary for that. :-)
> what's the point to have a dictionary at all in addition to the
> "shadow variables"?
I'm assuming that not everything in the dictionary needs a shadow=20
variable. If that's wrong (i.e. everything needs a shadow variable),=20
there's no point.
I also expect that we will be adding more-general device driver uses for=20
a dictionary. So we will have both "non-shadow-variable" uses for a dict,=
and we will need to figure out how to handle this eventually.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)
-----END PGP SIGNATURE-----