Showing the changes to include/uapi/linux (2 of 35 files). Show all
Unified · Split
| @@ -63,7 +63,7 @@ · 62 unmodified lines | ||
| 63 | 63 | #define FUTEX2_SIZE_U32 0x02 |
| 64 | 64 | #define FUTEX2_SIZE_U64 0x03 |
| 65 | 65 | #define FUTEX2_NUMA 0x04 |
| 66 | − /* 0x08 */ | |
| 66 | +#define FUTEX2_MPOL 0x08 | |
| 67 | 67 | /* 0x10 */ |
| 68 | 68 | /* 0x20 */ |
| 69 | 69 | /* 0x40 */ |
| @@ -74,6 +74,13 @@ · 4 unmodified lines | ||
| 74 | 74 | /* do not use */ |
| 75 | 75 | #define FUTEX_32 FUTEX2_SIZE_U32 /* historical accident :-( */ |
| 76 | 76 | |
| 77 | +/* | |
| 78 | + * When FUTEX2_NUMA doubles the futex word, the second word is a node value. | |
| 79 | + * The special value -1 indicates no-node. This is the same value as | |
| 80 | + * NUMA_NO_NODE, except that value is not ABI, this is. | |
| 81 | + */ | |
| 82 | +#define FUTEX_NO_NODE (-1) | |
| 83 | + | |
| 77 | 84 | /* |
| 78 | 85 | * Max numbers of elements in a futex_waitv array |
| 79 | 86 | */ |
| @@ -364,4 +364,11 @@ struct prctl_mm_map { · 363 unmodified lines | ||
| 364 | 364 | # define PR_TIMER_CREATE_RESTORE_IDS_ON 1 |
| 365 | 365 | # define PR_TIMER_CREATE_RESTORE_IDS_GET 2 |
| 366 | 366 | |
| 367 | +/* FUTEX hash management */ | |
| 368 | +#define PR_FUTEX_HASH 78 | |
| 369 | +# define PR_FUTEX_HASH_SET_SLOTS 1 | |
| 370 | +# define FH_FLAG_IMMUTABLE (1ULL << 0) | |
| 371 | +# define PR_FUTEX_HASH_GET_SLOTS 2 | |
| 372 | +# define PR_FUTEX_HASH_GET_IMMUTABLE 3 | |
| 373 | + | |
| 367 | 374 | #endif /* _LINUX_PRCTL_H */ |