• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _LINUX_FUTEX_H
20 #define _LINUX_FUTEX_H
21 #include <linux/sched.h>
22 #define FUTEX_WAIT 0
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define FUTEX_WAKE 1
25 #define FUTEX_FD 2
26 #define FUTEX_REQUEUE 3
27 #define FUTEX_CMP_REQUEUE 4
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define FUTEX_WAKE_OP 5
30 #define FUTEX_LOCK_PI 6
31 #define FUTEX_UNLOCK_PI 7
32 #define FUTEX_TRYLOCK_PI 8
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 struct robust_list {
35  struct robust_list __user *next;
36 };
37 struct robust_list_head {
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39  struct robust_list list;
40  long futex_offset;
41  struct robust_list __user *list_op_pending;
42 };
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define FUTEX_WAITERS 0x80000000
45 #define FUTEX_OWNER_DIED 0x40000000
46 #define FUTEX_TID_MASK 0x3fffffff
47 #define ROBUST_LIST_LIMIT 2048
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 #define FUTEX_OP_SET 0
50 #define FUTEX_OP_ADD 1
51 #define FUTEX_OP_OR 2
52 #define FUTEX_OP_ANDN 3
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 #define FUTEX_OP_XOR 4
55 #define FUTEX_OP_OPARG_SHIFT 8
56 #define FUTEX_OP_CMP_EQ 0
57 #define FUTEX_OP_CMP_NE 1
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 #define FUTEX_OP_CMP_LT 2
60 #define FUTEX_OP_CMP_LE 3
61 #define FUTEX_OP_CMP_GT 4
62 #define FUTEX_OP_CMP_GE 5
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 #define FUTEX_OP(op, oparg, cmp, cmparg)   (((op & 0xf) << 28) | ((cmp & 0xf) << 24)   | ((oparg & 0xfff) << 12) | (cmparg & 0xfff))
65 #endif
66