* [PATCH]Futex doc.
@ 2003-10-16 17:24 ffrederick
2003-10-17 23:07 ` Ulrich Drepper
0 siblings, 1 reply; 2+ messages in thread
From: ffrederick @ 2003-10-16 17:24 UTC (permalink / raw)
To: linux-kernel
Hi,
Someone could help me having a complete futex doc ?
Here's a first version :
Regards,
Fabian
Documentation for futexes kernel version 2.6.0-test6
(c) 2003 Fabian Frederick <ffrederick@users.sourceforge.net>
Note : Based on user man page by Bert Hubert - Comments by Jamie Lokier.
===============================================================================
This file contains documentation for Fast Userspace Mutexes.
For complete authors list and sources you can read /kernel/futex.c
===============================================================================
What's a mutex ?
Mutex stands for mutual exclusion.In other words, it helps synchronizing processes
against shared memory access for instance.
Futex is basically a counter whose value is atomically updated in userland.
Any concurrent access will be managed in kernel space.
3 futex types exist :
-shared
-private
-both
===============================================================================
Linux implementation
You can find POSIX mutex adaptation through futexes.User point of view and
documentation can be found at http://ds9a.nl/futex-manpages/
Futex interface is sys_futex syscall.Here are recognized operations:
-FUTEX_WAIT : Wait a process to up futex.
-FUTEX_WAKE : Wake up all futex waiters.
-FUTEX_FD : Associate a file descriptor to futex
-FUTEX_REQUEUE : Requeue all waiters hashed on one physical page to another
physical page.
___________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH]Futex doc.
2003-10-16 17:24 [PATCH]Futex doc ffrederick
@ 2003-10-17 23:07 ` Ulrich Drepper
0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2003-10-17 23:07 UTC (permalink / raw)
To: ffrederick; +Cc: linux-kernel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
ffrederick@prov-liege.be wrote:
> Someone could help me having a complete futex doc ?
I wrote something recently.
http://people.redhat.com/drepper/futex.pdf
- --
- --------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/kHYo2ijCOnn/RHQRAivVAJwJvnEVaidXP6dheZBz7zURjMxAcACgzZeW
bMMBk0PaaTI5i1IYzCPs1sM=
=ZOc2
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-10-17 23:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-16 17:24 [PATCH]Futex doc ffrederick
2003-10-17 23:07 ` Ulrich Drepper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).