Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Jan 2024 17:30:28 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 18cb422356f2 - main - timerfd: Move kern_timerfd_* prototypes to <sys/syscallsubr.h>
Message-ID:  <202401311730.40VHUSnE054099@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=18cb422356f259f83ad3189cc4494e56265aef94

commit 18cb422356f259f83ad3189cc4494e56265aef94
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2024-01-31 17:15:58 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2024-01-31 17:30:12 +0000

    timerfd: Move kern_timerfd_* prototypes to <sys/syscallsubr.h>
---
 sys/kern/sys_timerfd.c | 1 +
 sys/sys/syscallsubr.h  | 5 +++++
 sys/sys/timerfd.h      | 7 -------
 3 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/sys/kern/sys_timerfd.c b/sys/kern/sys_timerfd.c
index d9c0e189baf2..30c3709e59a6 100644
--- a/sys/kern/sys_timerfd.c
+++ b/sys/kern/sys_timerfd.c
@@ -44,6 +44,7 @@
 #include <sys/selinfo.h>
 #include <sys/stat.h>
 #include <sys/sx.h>
+#include <sys/syscallsubr.h>
 #include <sys/sysctl.h>
 #include <sys/sysent.h>
 #include <sys/sysproto.h>
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h
index 1eb9582a907d..25df3f03f1de 100644
--- a/sys/sys/syscallsubr.h
+++ b/sys/sys/syscallsubr.h
@@ -362,6 +362,11 @@ int	kern_thr_alloc(struct proc *, int pages, struct thread **);
 int	kern_thr_exit(struct thread *td);
 int	kern_thr_new(struct thread *td, struct thr_param *param);
 int	kern_thr_suspend(struct thread *td, struct timespec *tsp);
+int	kern_timerfd_create(struct thread *td, int clockid, int flags);
+int	kern_timerfd_gettime(struct thread *td, int fd,
+	    struct itimerspec *curr_value);
+int	kern_timerfd_settime(struct thread *td, int fd, int flags,
+	    const struct itimerspec *new_value, struct itimerspec *old_value);
 int	kern_truncate(struct thread *td, const char *path,
 	    enum uio_seg pathseg, off_t length);
 int	kern_funlinkat(struct thread *td, int dfd, const char *path, int fd,
diff --git a/sys/sys/timerfd.h b/sys/sys/timerfd.h
index cace3b71498c..06409a77f7d2 100644
--- a/sys/sys/timerfd.h
+++ b/sys/sys/timerfd.h
@@ -58,13 +58,6 @@ __END_DECLS
 
 #else /* _KERNEL */
 
-struct thread;
-
-int kern_timerfd_create(struct thread *td, int clockid, int flags);
-int kern_timerfd_gettime(struct thread *td, int fd,
-    struct itimerspec *curr_value);
-int kern_timerfd_settime(struct thread *td, int fd, int flags,
-    const struct itimerspec *new_value, struct itimerspec *old_value);
 void timerfd_jumped(void);
 
 #endif /* !_KERNEL */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401311730.40VHUSnE054099>