diff options
author | Jens Axboe <axboe@kernel.dk> | 2023-06-13 17:34:08 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-09-29 11:37:07 +0300 |
commit | e9a56c9325ef28d5481712e85dd5d3f8b2a68e88 (patch) | |
tree | 72752529ff7eab88986e8e48d72ad8a6985dad71 /kernel/futex/futex.h | |
parent | 5177c0cb306a8628bafbf1e6b7aa7e1b7436b8dc (diff) | |
download | linux-e9a56c9325ef28d5481712e85dd5d3f8b2a68e88.tar.xz |
futex: make the vectored futex operations available
Rename unqueue_multiple() as futex_unqueue_multiple(), and make both
that and futex_wait_multiple_setup() available for external users. This
is in preparation for wiring up vectored waits in io_uring.
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'kernel/futex/futex.h')
-rw-r--r-- | kernel/futex/futex.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/futex/futex.h b/kernel/futex/futex.h index 6b6a6b3da103..8b195d06f4e8 100644 --- a/kernel/futex/futex.h +++ b/kernel/futex/futex.h @@ -366,6 +366,11 @@ extern int futex_parse_waitv(struct futex_vector *futexv, unsigned int nr_futexes, futex_wake_fn *wake, void *wake_data); +extern int futex_wait_multiple_setup(struct futex_vector *vs, int count, + int *woken); + +extern int futex_unqueue_multiple(struct futex_vector *v, int count); + extern int futex_wait_multiple(struct futex_vector *vs, unsigned int count, struct hrtimer_sleeper *to); |