timerfd: Move kern_timerfd_* prototypes to <sys/syscallsubr.h>

This commit is contained in:
John Baldwin 2024-01-31 09:15:58 -08:00
parent e6b8c1d780
commit 18cb422356
3 changed files with 6 additions and 7 deletions

View file

@ -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>

View file

@ -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,

View file

@ -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 */