aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorDmitry Chagin <dchagin@FreeBSD.org>2021-07-29 09:41:58 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2021-07-29 09:41:58 +0000
commit307a3dd35cd48ae39849192e0d7a7d34ac7e6ac8 (patch)
treee0c7ee76ed6f1ffe385c45bb1ed620eb507061bd /sys/sys
parentaf29f3995882fac6e1c0360c2276c7a98056957f (diff)
downloadsrc-307a3dd35cd48ae39849192e0d7a7d34ac7e6ac8.tar.gz
src-307a3dd35cd48ae39849192e0d7a7d34ac7e6ac8.zip
umtx: Expose struct abs_timeout to the rest of the kernel.
Add umtx_ prefix to all abs_timeout facility and add declaration for it. For consistency with others abs_timeout mark inline abs_timeout_init2. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D31249 MFC after: 2 weeks
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/umtxvar.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/sys/umtxvar.h b/sys/sys/umtxvar.h
index b898c263201e..3f2c0d9e29ec 100644
--- a/sys/sys/umtxvar.h
+++ b/sys/sys/umtxvar.h
@@ -78,6 +78,13 @@ struct umtx_key {
#define PROCESS_SHARE 1
#define AUTO_SHARE 2
+struct umtx_abs_timeout {
+ int clockid;
+ bool is_abs_real; /* TIMER_ABSTIME && CLOCK_REALTIME* */
+ struct timespec cur;
+ struct timespec end;
+};
+
struct thread;
static inline int
@@ -89,6 +96,8 @@ umtx_key_match(const struct umtx_key *k1, const struct umtx_key *k2)
k1->info.both.b == k2->info.both.b);
}
+void umtx_abs_timeout_init(struct umtx_abs_timeout *, int, int,
+ const struct timespec *);
int umtx_copyin_timeout(const void *, struct timespec *);
void umtx_exec(struct proc *p);
int umtx_key_get(const void *, int, int, struct umtx_key *);