LSKQ(1)
okay bestie, this is LSKQ(1) from the General Commands Manual β the page that shows process kqueue state, and it's lowkey iconic for peeking at what processes are waiting on π
β¨
π¦ NAME π¦
lskq β display process kqueue state π
πΈ SYNOPSIS πΈ
lskq [-vhe] [-p <pid> | -a]
π DESCRIPTION π
The lskq command enumerates kqueues and registered kevents of running processes. That's the whole mission, and it ate. π
β¨ OPTIONS β¨
-p <pid>β Show kqueues of process<pid>. π«Ά-aβ Show kqueues for all running processes. Requires root. π-vβ Verbose: show opaque user data and filter-specific extension fields. π£οΈ-eβ Ignore empty kqueues. π-rβ Print fields in raw hex. π’-hβ Show help and exit. π
π OUTPUT π
lskq prints one line of output for each registered kevent, consisting of process, kqueue, and kevent information. For kqueues with no registered kevents, a single line is output with an ident of -. See kevent(2) for field semantics. The output columns are:
commandβ shortened process name.pidβ process identifier.kqβ file descriptor corresponding to kqueue, orwqfor the special workq kqueue.kqstβ kqueue status bitmask.kβ kqueue is in akevent*()wait set (KQ_SLEEP).sβ kqueue is in aselect()wait set (KQ_SEL).3,6,qβ Type of kevents on this kqueue:KEV32,KEV64, orKEV_QOS.
identβ kevent identifier. The meaning depends on the kevent filter specified. Where possible,lskqprints both numeric and symbolic names.filterβ kevent filter type (EVFILT_*).fdtypeβ file descriptor type, for filters operating on file descriptors.fflagsβ kevent filter flags bitmask. The meaning of each field depends on the filter type.EVFILT_READ:lβNOTE_LOWAT
EVFILT_MACHPORT:rβMACH_RCV_MSG
EVFILT_VNODE:dβNOTE_DELETEwβNOTE_WRITEeβNOTE_EXTENDaβNOTE_ATTRIBlβNOTE_LINKrβNOTE_RENAMEvβNOTE_REVOKEuβNOTE_FUNLOCK
EVFILT_PROC:xβNOTE_EXITtβNOTE_EXITSTATUSdβNOTE_EXIT_DETAILfβNOTE_FORKeβNOTE_EXECsβNOTE_SIGNALrβNOTE_REAP
EVFILT_TIMER:s,u,n,mβNOTE_SECONDS,NOTE_USECONDS,NOTE_NSECONDS,NOTE_MACHTIMEa,AβNOTE_ABSOLUTE,NOTE_MACH_CONTINUOUS_TIMEcβNOTE_CRITICALbβNOTE_BACKGROUNDlβNOTE_LEEWAY
EVFILT_USER:tβNOTE_TRIGGERaβNOTE_FFANDoβNOTE_FFOR
EVFILT_WORKLOOP:t,w,iβNOTE_WL_THREAD_REQUEST,NOTE_WL_SYNC_WAIT,NOTE_WL_SYNC_IPCWβNOTE_WL_SYNC_WAKEqβNOTE_WL_UPDATE_QOSoβNOTE_WL_DISCOVER_OWNEReβNOTE_WL_IGNORE_ESTALERβPOLICY_RRFβPOLICY_FIFOPβ Priority Configured on workloop
flagsβ kevent generic flags bitmask.aβEV_ADDnβEV_ENABLEdβEV_DISABLExβEV_DELETErβEV_RECEIPT1βEV_ONESHOTcβEV_CLEARsβEV_DISPATCHuβEV_UDATA_SPECIFICpβEV_FLAG0(EV_POLL)bβEV_FLAG1(EV_OOBAND)oβEV_EOFeβEV_ERROR
evstβ kevent status bitmask.aβKN_ACTIVE(event has triggered)qβKN_QUEUED(event has been added to the active list)dβKN_DISABLED(knote is disabled)pβKN_SUPPRESSED(event delivery is in flight)sβKN_STAYACTIVE(event is marked as always-enqueued on the active list)dβKN_DROPPING(knote is about to be dropped)lβKN_LOCKED(knote is locked)PβKN_POSTING(knote is being posted)mβKN_MERGE_QOS(knote is in override saturating mode)DβKN_DEFERDELETE(knote is waiting for deferred-delete ack)vβKN_REQVANISHnβKN_VANISHED
qosβ The QoS requested for the knote.dataβ Filter-specific data.
If the -v (verbose) option is specified, the opaque user-data field and further filter-specific extension fields are printed in raw hexadecimal. π
π NOTES π
β οΈ The output oflskqis not an atomic snapshot of system state. In cases wherelskqis able to detect an inconsistency, a warning will be printed.
Not all flags are symbolicated. Use -r (raw mode) to inspect additional flags. π
π«Ά SEE ALSO π«Ά
Thatβs the whole LSKQ(1) moment, bestie β from macOS, dated April 20, 2015. Mwah ππ
π¦ where this page comes from
- nixpkgs unstable: system_cmds 1042.100.6.0.1
- Copyright (c) 2015, Apple Inc. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms