Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jul 2009 14:36:08 +0200
From:      Ed Schouten <ed@80386.nl>
To:        Benjamin Kaduk <kaduk@MIT.EDU>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: add missing content to locking.9 ?
Message-ID:  <20090720123607.GI68469@hoeg.nl>
In-Reply-To: <alpine.GSO.1.10.0907200106100.17043@multics.mit.edu>
References:  <alpine.GSO.1.10.0907200106100.17043@multics.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hi Benjamin,

* Benjamin Kaduk <kaduk@MIT.EDU> wrote:
> +.Tn POSIX
> +semaphores provide ...

it looks like you described the semaphores that are used in userspace.
The Semaphores section of the locking(9) man page should describe
in-kernel semaphores (kern_sema.c). They are implemented by a mutex and
a conditional variable.

Even though it's nice to have some utility functions in our kernel, I
always wondered why we have them. There isn't a lot of code in the tree
that uses them...

-- 
 Ed Schouten <ed@80386.nl>
 WWW: http://80386.nl/

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEARECAAYFAkpkZLcACgkQ52SDGA2eCwVOZgCfcBM0q829T6mTGw4U8FmpqvaA
G68An3AEr3tnU9v2/TsVkwnk71VUWX44
=PSf8
-----END PGP SIGNATURE-----

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