1 .\" Copyright (c) 2015, Apple Inc. All rights reserved.
8 .Nd display process kqueue state
12 .Op Fl p Ar <pid> | Fl a
16 command enumerates kqueues and registered kevents of running processes.
21 Show kqueues of process
24 Show kqueues for all running processes. Requires root.
26 Verbose: show opaque user data and filter-specific extension fields.
30 Print fields in raw hex.
36 prints one line of output for each registered kevent, consisting of process,
37 kqueue, and kevent information. For kqueues with no registered kevents, a single
38 line is output with an ident of `-'. See
40 for field semantics. The output columns are:
41 .Bl -tag -width xxxxxxxxxxxx
43 shortened process name.
47 file descriptor corresponding to kqueue, or ``wq'' for the special workq kqueue.
49 kqueue status bitmask.
50 .Bl -tag -width xxxxxxx -compact
60 Type of kevents on this kqueue: KEV32, KEV64, or KEV_QOS.
63 kevent identifier. The meaning depends on the kevent filter specified. Where
66 prints both numeric and symbolic names.
68 kevent filter type (EVFILT_*).
70 file descriptor type, for filters operating on file descriptors.
72 kevent filter flags bitmask. The meaning of each field depends on the filter type.
73 .Bl -tag -width xxxxxxx -compact
117 NOTE_SECONDS, NOTE_USECONDS, NOTE_NSECONDS
137 NOTE_WL_THREAD_REQUEST, NOTE_WL_SYNC_WAIT
143 NOTE_WL_UPDATE_OWNER, NOTE_WL_DISCOVER_OWNER
146 kevent generic flags bitmask.
147 .Bl -tag -width xxxxxxx -compact
178 kevent status bitmask.
179 .Bl -tag -width xxxxxxx -compact
181 KN_ACTIVE (event has triggered)
183 KN_QUEUED (event has been added to the active list)
187 KN_STAYQUEUED (event is marked as always-enqueued on the active list)
201 Filter-specific data.
206 (verbose) option is specified, the opaque user-data field and further
207 filter-specific extension fields are printed in raw hexadecimal.
211 is not an atomic snapshot of system state. In cases where
213 is able to detect an inconsistency, a warning will be printed.
215 Not all flags are symbolicated. Use
217 (raw mode) to inspect additional flags.