lkml.org 
[lkml]   [2003]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: syscall documentation (2)
On Thu, 6 Feb 2003 21:08:10 +0100 (MET) Andries.Brouwer@cwi.nl wrote:
>
> The next new page is futex.2.
>
> Comments welcome.
> Andries
> aeb@cwi.nl
>
> -------------------------------
> NAME
> futex - Fast Userspace Locking system call
>
> SYNOPSIS
> #include <linux/futex.h>
>
> #include <sys/time.h>
>
> int sys_futex (void *futex, int op, int val, const struct
> timespec *timeout);

In discussions with Rusty, we decided that the first parameter
to sys_futex should be a u32 * i.e. a pointer to a 32 bit quantity
in user space. This is what is assumed by the code at the moment.
The kernel doesn't really care if it is signed or not as the only
test done on it is for equality.

I will be submitting a patch to that effect shortly. This also makes
it much easier to do the compatibility layer interface ...

> The futex argument needs to point to an aligned integer
^^^^^^^
32 bit quantity

--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.027 / U:2.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site