Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jan 2001 09:29:41 +0100
From:      Eivind Eklund <eivind@FreeBSD.org>
To:        Mark Murray <mark@grondar.za>
Cc:        John Baldwin <jhb@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/alpha/alpha sys_machdep.c vm_machdep.c s
Message-ID:  <20010102092941.A55120@warning.follo.net>
In-Reply-To: <200012251608.eBPG80F06877@gratis.grondar.za>; from mark@grondar.za on Mon, Dec 25, 2000 at 06:07:49PM %2B0200
References:  <XFMail.001225053429.jhb@FreeBSD.org> <200012251608.eBPG80F06877@gratis.grondar.za>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 25, 2000 at 06:07:49PM +0200, Mark Murray wrote:
> > > Cool! How many of these data structures are there needing lockdown?
> >
> > Every data structure in the kernel needs some kind of lock.  Now, a
> > lock can protect several related structures, or you might use one lock
> > to protect all data structures of a given type (rather than one lock
> > for each struct), but they all have to be locked by something.  So the
> > answer is "the number of data structures in the kernel."  Finding this
> > is left as an exercise to the reader.
> > :)
> 
> Ouch!
> 
> > I have no idea.  I would have to have all of hte kernel memorized to know all
> > of its data structures. :)
> 
> <learning mode>
> Hmm. Then surely some kind of formalised process would be necessary to
> ascertain which structures are local and which are needed elsewhere?
> (The intent being to discover how far reaching each lock should be).
> 
> <suggestion>
> Like if someone (I would not be adverse) were to go through the kernel
> and staticise-where-possible?
> 
> Apart from localising those data structures that need to be locked, it
> would also reduce namespace suggestion.
> </suggestion>
> </learning mode>

I've got access to (commercial) tools to do this, and have done a run before -
I'll try to get around to doing another one.

Eivind.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010102092941.A55120>