git: 4cf6cae879f9 - main - Document KERN_PROC_KQUEUE
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 13 Mar 2025 16:10:07 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=4cf6cae879f93856fd3d932574b4f154e8dc5367 commit 4cf6cae879f93856fd3d932574b4f154e8dc5367 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2025-02-24 00:46:17 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2025-03-13 16:09:35 +0000 Document KERN_PROC_KQUEUE Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D49163 --- 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 bf526169a4ce..fb68ddd60edc 100644 --- a/lib/libc/gen/sysctl.3 +++ b/lib/libc/gen/sysctl.3 @@ -511,6 +511,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 @@ -584,6 +585,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