Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux/common add the futex PI commands (not imple...
details: https://anonhg.NetBSD.org/src/rev/49b4425c5961
branches: trunk
changeset: 783869:49b4425c5961
user: christos <christos%NetBSD.org@localhost>
date: Fri Jan 11 02:49:09 2013 +0000
description:
add the futex PI commands (not implemented yet)
PI = Priotity Inheritance
diffstat:
sys/compat/linux/common/linux_futex.h | 23 +++++++++++++++--------
1 files changed, 15 insertions(+), 8 deletions(-)
diffs (45 lines):
diff -r 55c87b7ea532 -r 49b4425c5961 sys/compat/linux/common/linux_futex.h
--- a/sys/compat/linux/common/linux_futex.h Fri Jan 11 02:20:41 2013 +0000
+++ b/sys/compat/linux/common/linux_futex.h Fri Jan 11 02:49:09 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_futex.h,v 1.5 2011/09/14 12:28:08 christos Exp $ */
+/* $NetBSD: linux_futex.h,v 1.6 2013/01/11 02:49:09 christos Exp $ */
/*-
* Copyright (c) 2005 Emmanuel Dreyfus, all rights reserved.
@@ -34,21 +34,28 @@
#ifndef _LINUX_FUTEX_H
#define _LINUX_FUTEX_H
-#define LINUX_FUTEX_WAIT 0
-#define LINUX_FUTEX_WAKE 1
-#define LINUX_FUTEX_FD 2
-#define LINUX_FUTEX_REQUEUE 3
-#define LINUX_FUTEX_CMP_REQUEUE 4
-#define LINUX_FUTEX_WAKE_OP 5
+#define LINUX_FUTEX_WAIT 0
+#define LINUX_FUTEX_WAKE 1
+#define LINUX_FUTEX_FD 2
+#define LINUX_FUTEX_REQUEUE 3
+#define LINUX_FUTEX_CMP_REQUEUE 4
+#define LINUX_FUTEX_WAKE_OP 5
+#define LINUX_FUTEX_LOCK_PI 6
+#define LINUX_FUTEX_UNLOCK_PI 7
+#define LINUX_FUTEX_TRYLOCK_PI 8
+#define LINUX_FUTEX_WAIT_BITSET 9
+#define LINUX_FUTEX_WAKE_BITSET 10
+#define LINUX_FUTEX_WAIT_REQUEUE_PI 11
+#define LINUX_FUTEX_CMP_REQUEUE_PI 12
#define LINUX_FUTEX_PRIVATE_FLAG 128
+#define LINUX_FUTEX_CLOCK_REALTIME 256
#define FUTEX_OP_SET 0
#define FUTEX_OP_ADD 1
#define FUTEX_OP_OR 2
#define FUTEX_OP_ANDN 3
#define FUTEX_OP_XOR 4
-
#define FUTEX_OP_OPARG_SHIFT 8
#define FUTEX_OP_CMP_EQ 0
Home |
Main Index |
Thread Index |
Old Index