git: 1795bfc315ef - stable/14 - Document KERN_PROC_KQUEUE
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Apr 2025 01:28:58 UTC
The branch stable/14 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=1795bfc315efc3e1aa1cddccf9a837ddc71461fa
commit 1795bfc315efc3e1aa1cddccf9a837ddc71461fa
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-02-24 00:46:17 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-04-07 01:28:21 +0000
Document KERN_PROC_KQUEUE
(cherry picked from commit 4cf6cae879f93856fd3d932574b4f154e8dc5367)
---
lib/libc/gen/sysctl.3 | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3
index 836b52128ada..213c3463a7cc 100644
--- a/lib/libc/gen/sysctl.3
+++ b/lib/libc/gen/sysctl.3
@@ -513,6 +513,7 @@ specifies the current process.
.It Dv KERN_PROC_NFDS Ta "Integer"
.It Dv KERN_PROC_SIGFASTBLK Ta "Integer"
.It Dv KERN_PROC_VM_LAYOUT Ta "struct kinfo_vm_layout"
+.It Dv KERN_PROC_KQUEUE Ta "struct kinfo_knote []"
.El
.Pp
.Bl -tag -compact
@@ -586,6 +587,15 @@ Returns the address of the
location, if active.
.It Dv KERN_PROC_VM_LAYOUT
Fills a structure describing process virtual address space layout.
+.It Dv KERN_PROC_KQUEUE
+Fills an array of structures describing events registered with
+the specified kqueue.
+The next two node's values are the
+.Va pid
+and
+.Va kqfd ,
+the process ID of the process, and the file descriptor of the kqueue
+in that process, to query.
.El
.It Li KERN_PS_STRINGS
Reports the location of the process