Mach trap#-76
svc · mach trap -76
_kernelrpc_mach_port_type_trap
Trap-level entry point that backs mach_port_type — returns the bitmask of right flavors a name holds.
Prototype
kern_return_t _kernelrpc_mach_port_type_trap(/* 3 args */);Returns: kern_return_t
Version history
| XNU tag | macOS | # |
|---|---|---|
| xnu-6153.11.26 | macOS 10.15 Catalina | -76 |
| xnu-7195.50.7.100.1 | macOS 11.0 Big Sur | -76 |
| xnu-8019.41.5 | macOS 12.0 Monterey | -76 |
| xnu-8792.41.9 | macOS 13.0 Ventura | -76 |
| xnu-10002.1.13 | macOS 14.0 Sonoma | -76 |
| xnu-11215.1.10 | macOS 15.0 Sequoia | -76 |
| xnu-11417.101.15 | macOS 15.4 Sequoia | -76 |
| xnu-12377.1.9 | macOS 26.0 Tahoe | -76 |
| xnu-10002.41.9 | — | -76 |
| xnu-10002.61.3 | — | -76 |
| xnu-10002.81.5 | — | -76 |
| xnu-10063.101.15 | — | -76 |
| xnu-10063.121.3 | — | -76 |
| xnu-10063.141.1 | — | -76 |
| xnu-11215.41.3 | — | -76 |
| xnu-11215.61.5 | — | -76 |
| xnu-11215.81.4 | — | -76 |
| xnu-11417.121.6 | — | -76 |
| xnu-11417.140.69 | — | -76 |
| xnu-12377.101.15 | — | -76 |
| xnu-12377.41.6 | — | -76 |
| xnu-12377.61.12 | — | -76 |
| xnu-12377.81.4 | — | -76 |
| xnu-6153.101.6 | — | -76 |
| xnu-6153.121.1 | — | -76 |
| xnu-6153.141.1 | — | -76 |
| xnu-6153.41.3 | — | -76 |
| xnu-6153.61.1 | — | -76 |
| xnu-6153.81.5 | — | -76 |
| xnu-7195.101.1 | — | -76 |
| xnu-7195.121.3 | — | -76 |
| xnu-7195.141.2 | — | -76 |
| xnu-7195.60.75 | — | -76 |
| xnu-7195.81.3 | — | -76 |
| xnu-8019.61.5 | — | -76 |
| xnu-8019.80.24 | — | -76 |
| xnu-8020.101.4 | — | -76 |
| xnu-8020.121.3 | — | -76 |
| xnu-8020.140.41 | — | -76 |
| xnu-8792.61.2 | — | -76 |
| xnu-8792.81.2 | — | -76 |
| xnu-8796.101.5 | — | -76 |
| xnu-8796.121.2 | — | -76 |
| xnu-8796.141.3 | — | -76 |
Notes
The returned mach_port_type_t is the OR of MACH_PORT_TYPE_SEND, RECEIVE, SEND_ONCE, PORT_SET, DEAD_NAME, and DNREQUEST. It is the cheapest way to ask 'do I hold a send right on this name?' without inspecting the IPC table directly, and is used heavily by MIG cleanup code, lsmp, and any library that defensively validates incoming port descriptors before manipulating them.
Detection
DTrace mach_trap probe only.
Related APIs
mach_port_type_kernelrpc_mach_port_get_attributes_trapmach_port_names