Inner workings of turnstiles and sleepqueues

Attilio Rao attilio at freebsd.org
Fri Oct 19 11:34:40 PDT 2007


2007/10/19, John Baldwin <jhb at freebsd.org>:
> On Friday 19 October 2007 12:56:54 am Ed Schouten wrote:
> > * John Baldwin <jhb at freebsd.org> wrote:
> > > The best option right now is to read the code.  There are some comments in
> > > both the headers and implementation.
> >
> > Would it be useful to write manpages for these interfaces, or do we
> > assume that only godlike people can use them anyway? I am willing to
> > write manpages for them.
>
> They already exist, but they really are only used to implement higher-level
> primitives like locks and condition variables.  The rest of the kernel should
> use the higher-level primitives anyway.

Well, really turnstiles don't have manpages, but this is still OK as
they are only used in mutex while the "real" sleeping primitive should
be identified by sleepqueues.

Attilio


-- 
Peace can only be achieved by understanding - A. Einstein


More information about the freebsd-hackers mailing list