drm/panel: panel-himax-hx83102: support for csot-pna957qt1-1 MIPI-DSI panel
[drm/drm-misc.git] / tools / testing / selftests / futex / include / futex2test.h
blob9d305520e849bdfacf5ffb3fb884e347eaeb70c6
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Futex2 library addons for futex tests
5 * Copyright 2021 Collabora Ltd.
6 */
7 #include <stdint.h>
9 #define u64_to_ptr(x) ((void *)(uintptr_t)(x))
11 /**
12 * futex_waitv - Wait at multiple futexes, wake on any
13 * @waiters: Array of waiters
14 * @nr_waiters: Length of waiters array
15 * @flags: Operation flags
16 * @timo: Optional timeout for operation
18 static inline int futex_waitv(volatile struct futex_waitv *waiters, unsigned long nr_waiters,
19 unsigned long flags, struct timespec *timo, clockid_t clockid)
21 return syscall(__NR_futex_waitv, waiters, nr_waiters, flags, timo, clockid);