Messages in this thread | | | Date | Mon, 8 Dec 2014 01:56:37 -0800 | From | Jeremiah Mahler <> | Subject | Re: [PATCH] Documentation of current lglocks implementation |
| |
Nicholas,
On Mon, Dec 08, 2014 at 09:33:26AM +0100, Nicholas Mc Guire wrote: > > Documentation of current lglocks implementation > > local/global locks are currently not documented anywhere other > than in an somewhat out-of-date LWN article - this is an attempt [...] > +Implementation: > +--------------- > + > +The initial lglock implementation from Nick Piggin used some complex > +macros to generate the lglock/brlock in lglock.h - they were later > +turned into a set of functions by Andi Kleen [7]. The change to functions > +was motivated by the presence of multiple lock users and also by them > +being easier to maintain than the generating macros. This change to > +functions is also the basis to eliminated the restriction of not > +being initializeable in kernel modules (the remaining problem is that ^^^^^^^^^^^^^^ initializable
> +locks are not explicitly initialized - see lockdep-design.txt) > + > +Declaration and initialization: > +------------------------------- > + > + #include <linux/lglock.h> [...]
-- - Jeremiah Mahler
| |