git: 618347747494 - main - kqueue(9): document f_copy
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 03 Dec 2025 04:40:51 UTC
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