Re: [PATCH] Add FUTEX_CMP_REQUEUE futex op

From: Jakub Jelinek
Date: Mon May 24 2004 - 03:21:18 EST


On Mon, May 24, 2004 at 01:12:03AM -0700, Andrew Morton wrote:
> Jakub Jelinek <jakub@xxxxxxxxxx> wrote:
> >
> > That said, NPTL can deal with any of these variants and the decision
> > is up to Martin I think (assuming the base patch gets accepted, that is).
>
> Well the race is real and does need a kernel fix, so I queued it up. I
> guess if the new argument to sys_futex() breaks some architecture they can
> independently add a new syscall for it, or send a fix. Mutter.
>
> It's a bit of a shame that you need to be a rocket scientist to
> understand the futex syscall interface. Bert, are you still maintaining
> the manpage? If so, is there enough info here to update it?

The latest futex(2) or futex(4) manpage I saw doesn't mention FUTEX_REQUEUE
at all.
Also, any futex man page should probably SEE ALSO Ulrich's futex paper:
http://people.redhat.com/drepper/futex.pdf
which helps understanding how to successfully use futexes, because
it is certainly not trivial.

Jakub
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/