[lkml]   [2003]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: syscall documentation (2)
On Thu, 6 Feb 2003 21:08:10 +0100 (MET) wrote:
> The next new page is futex.2.
> Comments welcome.
> Andries
> -------------------------------
> futex - Fast Userspace Locking system call
> #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

Stephen Rothwell
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  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