]> git.saurik.com Git - apple/system_cmds.git/blame - lsmp.tproj/lsmp.1
system_cmds-735.20.1.tar.gz
[apple/system_cmds.git] / lsmp.tproj / lsmp.1
CommitLineData
fc6d9e4b
A
1.\" Copyright (c) 2012, Apple Inc. All rights reserved.
2.\"
3.Dd Jul 24, 2012
4.Dt LSMP 1
5.Os "Mac OS X"
6.Sh NAME
7.Nm lsmp
8.Nd Display mach port information for processes on the system
9.Sh SYNOPSIS
10.Nm lsmp
11.Fl h
12.Pp
13.Nm lsmp
1a7e3f61
A
14.Ar -p <pid>
15Show mach port usage for <pid>. Run with root privileges to see detailed info about port destinations etc.
fc6d9e4b
A
16.Pp
17.Nm lsmp
1a7e3f61
A
18.Ar -v
19Show information in detail for Kernel object based ports. Including thread ports and special ports attached to it.
20.Pp
21.Nm lsmp
22.Ar -a
fc6d9e4b
A
23Show mach port usage for all tasks in the system
24.Sh DESCRIPTION
25The
26.Nm lsmp
27 command prints information about every active right in a task's port space, giving a view into the inter-process communication behavior of that task.
28.P
29.nf
30Following is an explanation of each symbol and values from the output.
31name : Task unique name for a port. A "-" signifies that this is a member of a port-set
32ipc-object : A unique identifier for a kernel object. A "+" sign implies that this entry is expanded from above ipc-object.
33rights : Rights corresponding to this name. Possible values are recv, send, send-once and port-set.
34flags : Flags indicating port status.
35 T : Port has tempowner set
36 G : Port is guarded
37 S : Port has strict guarding restrictions
38 I : Port has importance donation flag set
39 R : Port is marked reviving
40 P : Port has task pointer set
41boost : Importance boost count
42reqs : Notifications armed on this port.
43 D : Dead name notification
44 N : No sender notification
45 P : Port Destroy requests
46recv : Number of recv rights for this name.
47send : Number of send rights stored at this name. This does NOT reflect the total number of send rights for this recv right.
48sonce : Number of outstanding send-once rights for this receive right.
49oref : Do send rights exist somewhere for this receive right?
50qlimit : Queue limit for this port. If orefs column shows -> then it indicates the queue limit on the destination port. And a <- indicates this port right is destined to receive messages from process referred in identifier column.
51msgcount : Number of messages enqueued on this port. See qlimit for -> and <- explanations.
52context : Mach port context value.
53identifier : A unique identifier for a kernel object or task's name for this right. This field is described by the type column.
54.fi
55.Sh SEE ALSO
56.Xr ddt 1
57.Xr top 1