summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi/linux/futex.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-07-24 00:45:45 +0000
committergVisor bot <gvisor-bot@google.com>2020-07-24 00:45:45 +0000
commit4d5f3fb1a454d4421414a355ff94276e1d6e0fdc (patch)
treef478fe5be3ec585fb919ac2541f274ce470ad7fc /pkg/abi/linux/futex.go
parent889487928af61ef0544f8bec6c3d35fd423905c3 (diff)
parent4ec351633206fdbd191bc3aef29a007925a731cc (diff)
Merge release-20200622.1-207-g4ec351633 (automated)
Diffstat (limited to 'pkg/abi/linux/futex.go')
-rw-r--r--pkg/abi/linux/futex.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/pkg/abi/linux/futex.go b/pkg/abi/linux/futex.go
index 08bfde3b5..8138088a6 100644
--- a/pkg/abi/linux/futex.go
+++ b/pkg/abi/linux/futex.go
@@ -60,3 +60,21 @@ const (
FUTEX_WAITERS = 0x80000000
FUTEX_OWNER_DIED = 0x40000000
)
+
+// FUTEX_BITSET_MATCH_ANY has all bits set.
+const FUTEX_BITSET_MATCH_ANY = 0xffffffff
+
+// ROBUST_LIST_LIMIT protects against a deliberately circular list.
+const ROBUST_LIST_LIMIT = 2048
+
+// RobustListHead corresponds to Linux's struct robust_list_head.
+//
+// +marshal
+type RobustListHead struct {
+ List uint64
+ FutexOffset uint64
+ ListOpPending uint64
+}
+
+// SizeOfRobustListHead is the size of a RobustListHead struct.
+var SizeOfRobustListHead = (*RobustListHead)(nil).SizeBytes()