From nobody Wed Jan 31 17:30:28 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TQ8FK0CxNz58wB2; Wed, 31 Jan 2024 17:30:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TQ8FJ5yTzz4Htx; Wed, 31 Jan 2024 17:30:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706722228; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VUunj9Lc99VYvvpxEcSnHBm8DtRt4KmNRw9CMPNRUhk=; b=JEucozGSQ2c7Mrcxm5aitPAwqVcRxQmFVqJs67O51Q9Lor0rt8ImSwEIZI9S4hT7oW6keL X+LbLE43iUWQWGU6xwljcfjxie5loiJd5xLjtEs8mNfq9v8iyhrN5GnslX1vECkSaMpDnp glKTK2uXJ66RNG4pMrlYf7feuW+m8GVcRWBaVzq6ABWfURXg+GbpMDUpj/BwKIR2HCR+qf NcfeBGRRLVnW+XZ23NAPguBIn61zZTeyLWQ/Dmi/clvXiafZV3VbTcnzUkFOt+HZIyL1QP M9Dpcw+acEUUtd5/7sYjD9P7KUQ0l69Ylh5N6UvGJd7fDIYLvdn+ZOcPbbUoWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706722228; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VUunj9Lc99VYvvpxEcSnHBm8DtRt4KmNRw9CMPNRUhk=; b=b994O0OmqDunBHip7foXTYh7TZH+xOowxaDXIrXN4xYrGtEZ2niy2UePlpsXYRuOnR92ay lXvX4lD84bqmSqFeBCorZFaaW2VbW2cYpa2yOojk9jaH9SxA3Tc0vNqNoULWxGUTsYZ/zC 7+x9c29rGjeQJ7U59sbUWfrpvjmqMimUW90fni64rfbWc0To8DNRH/HOODtcyf1Q22cJ8Y 2kJdf8fzjAftQ+nAUHEDL7zElRcBz2LkzYn3BFgF9z52WTcMko3KDe1wElrw5X1K2WTl7t x64ETuzI7nEES7EV9NKLWJ1izt9P6HHzRVA8B7N0HRQmHUdm3KnN0+4ZqcwdRA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706722228; a=rsa-sha256; cv=none; b=mC/BsDoBGNkWY2DoTW0weXugcd/J/qAOa8WFTxobSYpnxlyZKsYHPcQ3u242vOCbnYeZoy x20leh4cmxZkKLik3x5uqydlsl9hMFWgsZAb3jikWZdfQNfnMVY1ZTpyjsL5wS5So0Rg5m DivgUjv8cvTNWPIURKFzA5pOXv+CyFqNVhs29JlIr998dTVvxDcKaivTNQSLRW7WR14m5j e5l0W31/cj1Bin1tEcLGZDlOWNL0tPfLk9jE9Cr0+gO/FY266VyNdFchIiO6Lv3kdhRhnO dskDMGbfKfaBXmF9G+CIICH/M2uRkw2mia0LFyttGPgB3sBlFvw5t+QaJ7Sq+A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TQ8FJ51shzRcc; Wed, 31 Jan 2024 17:30:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40VHUS4G054102; Wed, 31 Jan 2024 17:30:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40VHUSnE054099; Wed, 31 Jan 2024 17:30:28 GMT (envelope-from git) Date: Wed, 31 Jan 2024 17:30:28 GMT Message-Id: <202401311730.40VHUSnE054099@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 18cb422356f2 - main - timerfd: Move kern_timerfd_* prototypes to List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 18cb422356f259f83ad3189cc4494e56265aef94 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=18cb422356f259f83ad3189cc4494e56265aef94 commit 18cb422356f259f83ad3189cc4494e56265aef94 Author: John Baldwin AuthorDate: 2024-01-31 17:15:58 +0000 Commit: John Baldwin CommitDate: 2024-01-31 17:30:12 +0000 timerfd: Move kern_timerfd_* prototypes to --- 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 #include #include +#include #include #include #include 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 */