aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2022-02-11 10:33:59 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2022-02-17 08:30:27 +0000
commitcb15ed7da2be02b108d732e41bb6e68febf93f90 (patch)
tree2c90faa7b52986eb5d81fbb1737a74d165e01181
parent74ca6a22f9c1ff9ea407de7053891fca5a680402 (diff)
downloadsrc-cb15ed7da2be02b108d732e41bb6e68febf93f90.tar.gz
src-cb15ed7da2be02b108d732e41bb6e68febf93f90.zip
linuxkpi: Add __var_waitqueue
This returns the wait queue based on the object but in LinuxKPI we only have one waitqueue for this. Reviewed by: hselasky, bz MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D34250
-rw-r--r--sys/compat/linuxkpi/common/include/linux/wait_bit.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/wait_bit.h b/sys/compat/linuxkpi/common/include/linux/wait_bit.h
index 17716583399f..66c1149da432 100644
--- a/sys/compat/linuxkpi/common/include/linux/wait_bit.h
+++ b/sys/compat/linuxkpi/common/include/linux/wait_bit.h
@@ -64,4 +64,10 @@ wake_up_var(void *var)
wake_up(&linux_var_waitq);
}
+static inline wait_queue_head_t *
+__var_waitqueue(void *p)
+{
+ return (&linux_var_waitq);
+}
+
#endif /* __LINUXKPI_LINUX_WAITBIT_H__ */