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 -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html