mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
timerfd: Move kern_timerfd_* prototypes to <sys/syscallsubr.h>
(cherry picked from commit 18cb422356f259f83ad3189cc4494e56265aef94)
This commit is contained in:
parent
b680e6da13
commit
bf5387a936
3 changed files with 6 additions and 7 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -364,6 +364,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,
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue