summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2016-01-09 17:10:22 +0000
committerdchagin <dchagin@FreeBSD.org>2016-01-09 17:10:22 +0000
commitf9c41e34075d6689e15e9bfd4ff205f852c56d8a (patch)
treeb4e73e36a6b0ea0f2e751c36612a8b387d8751d2 /sys/compat
parent8be89d308fd030698abab043b1d7019e4b1283a1 (diff)
downloadFreeBSD-src-f9c41e34075d6689e15e9bfd4ff205f852c56d8a.zip
FreeBSD-src-f9c41e34075d6689e15e9bfd4ff205f852c56d8a.tar.gz
MFC r283462:
Add prototypes for static futex functions.
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_futex.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_futex.c b/sys/compat/linux/linux_futex.c
index 8e6ebad..df9c7fd 100644
--- a/sys/compat/linux/linux_futex.c
+++ b/sys/compat/linux/linux_futex.c
@@ -247,6 +247,21 @@ struct mtx futex_mtx; /* protects the futex list */
* wp_list to prevent double wakeup.
*/
+static void futex_put(struct futex *, struct waiting_proc *);
+static int futex_get0(uint32_t *, struct futex **f, uint32_t);
+static int futex_get(uint32_t *, struct waiting_proc **, struct futex **,
+ uint32_t);
+static int futex_sleep(struct futex *, struct waiting_proc *, int);
+static int futex_wake(struct futex *, int, uint32_t);
+static int futex_requeue(struct futex *, int, struct futex *, int);
+static int futex_wait(struct futex *, struct waiting_proc *, int,
+ uint32_t);
+static int futex_atomic_op(struct thread *, int, uint32_t *);
+static int handle_futex_death(struct linux_emuldata *, uint32_t *,
+ unsigned int);
+static int fetch_robust_entry(struct linux_robust_list **,
+ struct linux_robust_list **, unsigned int *);
+
/* support.s */
int futex_xchgl(int oparg, uint32_t *uaddr, int *oldval);
int futex_addl(int oparg, uint32_t *uaddr, int *oldval);
@@ -254,6 +269,7 @@ int futex_orl(int oparg, uint32_t *uaddr, int *oldval);
int futex_andl(int oparg, uint32_t *uaddr, int *oldval);
int futex_xorl(int oparg, uint32_t *uaddr, int *oldval);
+
static void
futex_put(struct futex *f, struct waiting_proc *wp)
{
OpenPOWER on IntegriCloud