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
119 NOTE_SECONDS, NOTE_USECONDS, NOTE_NSECONDS, NOTE_MACHTIME
121 NOTE_ABSOLUTE, NOTE_MACH_CONTINUOUS_TIME
139 NOTE_WL_THREAD_REQUEST, NOTE_WL_SYNC_WAIT, NOTE_WL_SYNC_IPC
145 NOTE_WL_DISCOVER_OWNER
147 NOTE_WL_IGNORE_ESTALE
150 kevent generic flags bitmask.
151 .Bl -tag -width xxxxxxx -compact
182 kevent status bitmask.
183 .Bl -tag -width xxxxxxx -compact
185 KN_ACTIVE (event has triggered)
187 KN_QUEUED (event has been added to the active list)
189 KN_DISABLED (knote is disabled)
191 KN_SUPPRESSED (event delivery is in flight)
193 KN_STAYACTIVE (event is marked as always-enqueued on the active list)
196 KN_DROPPING (knote is about to be dropped)
198 KN_LOCKED (knote is locked)
200 KN_POSTING (knote is being posted)
202 KN_MERGE_QOS (knote is in override saturating mode)
205 KN_DEFERDELETE (knote is waiting for deferred-delete ack)
212 The QoS requested for the knote.
214 Filter-specific data.
219 (verbose) option is specified, the opaque user-data field and further
220 filter-specific extension fields are printed in raw hexadecimal.
224 is not an atomic snapshot of system state. In cases where
226 is able to detect an inconsistency, a warning will be printed.
228 Not all flags are symbolicated. Use
230 (raw mode) to inspect additional flags.