Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Dec 2025 04:40:51 +0000
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 618347747494 - main - kqueue(9): document f_copy
Message-ID:  <692fbf53.3d6b9.17cac8b2@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=618347747494f0c0842edbdfe29bacf533b10d0f

commit 618347747494f0c0842edbdfe29bacf533b10d0f
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2025-12-03 04:40:47 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-12-03 04:40:47 +0000

    kqueue(9): document f_copy
    
    f_copy controls whether and how a knote is inherited by the child
    process.
    
    Sponsored by:           Netflix
    Reviewed by:            kib
    Differential Revision:  https://reviews.freebsd.org/D53845
---
 share/man/man9/kqueue.9 | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/share/man/man9/kqueue.9 b/share/man/man9/kqueue.9
index 8214d7c01673..bc73530226f0 100644
--- a/share/man/man9/kqueue.9
+++ b/share/man/man9/kqueue.9
@@ -22,7 +22,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd December 18, 2023
+.Dd December 2, 2025
 .Dt KQUEUE 9
 .Os
 .Sh NAME
@@ -197,6 +197,18 @@ function of the
 that the
 .Va knote
 was added to.
+.It Va f_copy
+The
+.Va f_copy
+function is called to copy notes when the process forks.
+When
+.Dv NULL ,
+the current node is not duplicated to the child process.
+Filter might set
+.Dv f_copy
+to
+.Fn knote_triv_copy
+if there is no additional handling required, besides shallow copying of the knote itself.
 .El
 .Pp
 The function


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?692fbf53.3d6b9.17cac8b2>