aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/timeout.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys/timeout.h')
-rw-r--r--sys/sys/timeout.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/sys/timeout.h b/sys/sys/timeout.h
index 1cd9fca..4c6ac5a 100644
--- a/sys/sys/timeout.h
+++ b/sys/sys/timeout.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: timeout.h,v 1.36 2020/01/03 02:16:38 cheloha Exp $ */
+/* $OpenBSD: timeout.h,v 1.39 2020/08/07 00:45:25 cheloha Exp $ */
/*
* Copyright (c) 2000-2001 Artur Grabowski <art@openbsd.org>
* All rights reserved.
@@ -62,6 +62,9 @@ struct timeout {
void *to_arg; /* function argument */
int to_time; /* ticks on event */
int to_flags; /* misc flags */
+#if 1 /* NKCOV > 0 */
+ struct process *to_process; /* kcov identifier */
+#endif
};
/*
@@ -71,7 +74,6 @@ struct timeout {
#define TIMEOUT_ONQUEUE 0x02 /* on any timeout queue */
#define TIMEOUT_INITIALIZED 0x04 /* initialized */
#define TIMEOUT_TRIGGERED 0x08 /* running or ran */
-#define TIMEOUT_SCHEDULED 0x10 /* put on wheel at least once */
struct timeoutstat {
uint64_t tos_added; /* timeout_add*(9) calls */
@@ -111,15 +113,11 @@ int timeout_sysctl(void *, size_t *, void *, size_t);
#define TIMEOUT_INITIALIZER(_f, _a) TIMEOUT_INITIALIZER_FLAGS((_f), (_a), 0)
-struct bintime;
-
void timeout_set(struct timeout *, void (*)(void *), void *);
void timeout_set_flags(struct timeout *, void (*)(void *), void *, int);
void timeout_set_proc(struct timeout *, void (*)(void *), void *);
int timeout_add(struct timeout *, int);
int timeout_add_tv(struct timeout *, const struct timeval *);
-int timeout_add_ts(struct timeout *, const struct timespec *);
-int timeout_add_bt(struct timeout *, const struct bintime *);
int timeout_add_sec(struct timeout *, int);
int timeout_add_msec(struct timeout *, int);
int timeout_add_usec(struct timeout *, int);