Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.14 KB | None | 0 0
  1. lskq(1) BSD General Commands Manual lskq(1)
  2.  
  3. NAME
  4. lskq -- display process kqueue state
  5.  
  6. SYNOPSIS
  7. lskq [-vhe] [-p <pid> | -a]
  8.  
  9. DESCRIPTION
  10. The lskq command enumerates kqueues and registered kevents of running
  11. processes.
  12.  
  13. OPTIONS
  14. -p <pid>
  15. Show kqueues of process <pid>.
  16.  
  17. -a Show kqueues for all running processes. Requires root.
  18.  
  19. -v Verbose: show opaque user data and filter-specific extension fields.
  20.  
  21. -e Ignore empty kqueues.
  22.  
  23. -r Print fields in raw hex.
  24.  
  25. -h Show help and exit.
  26.  
  27. OUTPUT
  28. lskq prints one line of output for each registered kevent, consisting of
  29. process, kqueue, and kevent information. For kqueues with no registered
  30. kevents, a single line is output with an ident of `-'. See kevent(2) for
  31. field semantics. The output columns are:
  32.  
  33. command shortened process name.
  34.  
  35. pid process identifier.
  36.  
  37. kq file descriptor corresponding to kqueue, or ``wq'' for the
  38. special workq kqueue.
  39.  
  40. kqst kqueue status bitmask.
  41. k kqueue is in a kevent*() wait set (KQ_SLEEP).
  42. s kqueue is in a select() wait set (KQ_SEL).
  43. 3 6 q Type of kevents on this kqueue: KEV32, KEV64, or
  44. KEV_QOS.
  45.  
  46. ident kevent identifier. The meaning depends on the kevent filter
  47. specified. Where possible, lskq prints both numeric and
  48. symbolic names.
  49.  
  50. filter kevent filter type (EVFILT_*).
  51.  
  52. fdtype file descriptor type, for filters operating on file
  53. descriptors.
  54.  
  55. fflags kevent filter flags bitmask. The meaning of each field
  56. depends on the filter type.
  57.  
  58. EVFILT_READ:
  59. l NOTE_LOWAT
  60.  
  61. EVFILT_MACHPORT:
  62. r MACH_RCV_MSG
  63.  
  64. EVFILT_VNODE:
  65. d NOTE_DELETE
  66. w NOTE_WRITE
  67. e NOTE_EXTEND
  68. a NOTE_ATTRIB
  69. l NOTE_LINK
  70. r NOTE_RENAME
  71. v NOTE_REVOKE
  72.  
  73. EVFILT_PROC:
  74. x NOTE_EXIT
  75. t NOTE_EXITSTATUS
  76. d NOTE_EXIT_DETAIL
  77. f NOTE_FORK
  78. e NOTE_EXEC
  79. s NOTE_SIGNAL
  80. r NOTE_REAP
  81.  
  82. EVFILT_TIMER:
  83. s u n m NOTE_SECONDS, NOTE_USECONDS, NOTE_NSECONDS,
  84. NOTE_MACHTIME
  85. a A NOTE_ABSOLUTE, NOTE_MACH_CONTINUOUS_TIME
  86. c NOTE_CRITICAL
  87. b NOTE_BACKGROUND
  88. l NOTE_LEEWAY
  89.  
  90. EVFILT_USER:
  91. t NOTE_TRIGGER
  92. a NOTE_FFAND
  93. o NOTE_FFOR
  94.  
  95. EVFILT_WORKLOOP:
  96. t w i NOTE_WL_THREAD_REQUEST, NOTE_WL_SYNC_WAIT,
  97. NOTE_WL_SYNC_IPC
  98. W NOTE_WL_SYNC_WAKE
  99. q NOTE_WL_UPDATE_QOS
  100. o NOTE_WL_DISCOVER_OWNER
  101. e NOTE_WL_IGNORE_ESTALE
  102.  
  103. flags kevent generic flags bitmask.
  104. a EV_ADD
  105. n EV_ENABLE
  106. d EV_DISABLE
  107. x EV_DELETE
  108.  
  109. r EV_RECEIPT
  110. 1 EV_ONESHOT
  111. c EV_CLEAR
  112. s EV_DISPATCH
  113.  
  114. u EV_UDATA_SPECIFIC
  115. p EV_FLAG0 (EV_POLL)
  116. b EV_FLAG1 (EV_OOBAND)
  117. o EV_EOF
  118. e EV_ERROR
  119.  
  120. evst kevent status bitmask.
  121. a KN_ACTIVE (event has triggered)
  122. q KN_QUEUED (event has been added to the active
  123. list)
  124. d KN_DISABLED (knote is disabled)
  125. p KN_SUPPRESSED (event delivery is in flight)
  126. s KN_STAYACTIVE (event is marked as always-enqueued
  127. on the active list)
  128.  
  129. d KN_DROPPING (knote is about to be dropped)
  130. l KN_LOCKED (knote is locked)
  131. P KN_POSTING (knote is being posted)
  132. m KN_MERGE_QOS (knote is in override saturating
  133. mode)
  134.  
  135. D KN_DEFERDELETE (knote is waiting for deferred-
  136. delete ack)
  137. v KN_REQVANISH
  138. n KN_VANISHED
  139.  
  140. qos The QoS requested for the knote.
  141.  
  142. data Filter-specific data.
  143.  
  144. If the -v (verbose) option is specified, the opaque user-data field and
  145. further filter-specific extension fields are printed in raw hexadecimal.
  146.  
  147. NOTES
  148. The output of lskq is not an atomic snapshot of system state. In cases
  149. where lskq is able to detect an inconsistency, a warning will be printed.
  150.  
  151. Not all flags are symbolicated. Use -r (raw mode) to inspect additional
  152. flags.
  153.  
  154. SEE ALSO
  155. kqueue(2), kevent(2), ddt(1), lsof(8), lsmp(1)
  156.  
  157. Mac OS X Apr 20, 2015 Mac OS X
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement