Mach trap#-72
svc · mach trap -72
mach_voucher_extract_attr_recipe_trap
Read back an attribute recipe (QoS, importance, bank, etc.) from a Mach voucher.
Prototype
kern_return_t mach_voucher_extract_attr_recipe_trap(/* 4 args */);Returns: kern_return_t
Version history
| XNU tag | macOS | # |
|---|---|---|
| xnu-3789.1.32 | macOS 10.12 Sierra | -72 |
| xnu-4570.1.46 | macOS 10.13 High Sierra | -72 |
| xnu-4903.221.2 | macOS 10.14 Mojave | -72 |
| xnu-6153.11.26 | macOS 10.15 Catalina | -72 |
| xnu-7195.50.7.100.1 | macOS 11.0 Big Sur | -72 |
| xnu-8019.41.5 | macOS 12.0 Monterey | -72 |
| xnu-8792.41.9 | macOS 13.0 Ventura | -72 |
| xnu-10002.1.13 | macOS 14.0 Sonoma | -72 |
| xnu-11215.1.10 | macOS 15.0 Sequoia | -72 |
| xnu-11417.101.15 | macOS 15.4 Sequoia | -72 |
| xnu-12377.1.9 | macOS 26.0 Tahoe | -72 |
| xnu-10002.41.9 | — | -72 |
| xnu-10002.61.3 | — | -72 |
| xnu-10002.81.5 | — | -72 |
| xnu-10063.101.15 | — | -72 |
| xnu-10063.121.3 | — | -72 |
| xnu-10063.141.1 | — | -72 |
| xnu-11215.41.3 | — | -72 |
| xnu-11215.61.5 | — | -72 |
| xnu-11215.81.4 | — | -72 |
| xnu-11417.121.6 | — | -72 |
| xnu-11417.140.69 | — | -72 |
| xnu-12377.101.15 | — | -72 |
| xnu-12377.41.6 | — | -72 |
| xnu-12377.61.12 | — | -72 |
| xnu-12377.81.4 | — | -72 |
| xnu-3789.21.4 | — | -72 |
| xnu-3789.31.2 | — | -72 |
| xnu-3789.41.3 | — | -72 |
| xnu-3789.51.2 | — | -72 |
| xnu-3789.60.24 | — | -72 |
| xnu-3789.70.16 | — | -72 |
| xnu-4570.20.62 | — | -72 |
| xnu-4570.31.3 | — | -72 |
| xnu-4570.41.2 | — | -72 |
| xnu-4570.51.1 | — | -72 |
| xnu-4570.61.1 | — | -72 |
| xnu-4570.71.2 | — | -72 |
| xnu-4903.231.4 | — | -72 |
| xnu-4903.241.1 | — | -72 |
| xnu-4903.270.47 | — | -72 |
| xnu-6153.101.6 | — | -72 |
| xnu-6153.121.1 | — | -72 |
| xnu-6153.141.1 | — | -72 |
| xnu-6153.41.3 | — | -72 |
| xnu-6153.61.1 | — | -72 |
| xnu-6153.81.5 | — | -72 |
| xnu-7195.101.1 | — | -72 |
| xnu-7195.121.3 | — | -72 |
| xnu-7195.141.2 | — | -72 |
| xnu-7195.60.75 | — | -72 |
| xnu-7195.81.3 | — | -72 |
| xnu-8019.61.5 | — | -72 |
| xnu-8019.80.24 | — | -72 |
| xnu-8020.101.4 | — | -72 |
| xnu-8020.121.3 | — | -72 |
| xnu-8020.140.41 | — | -72 |
| xnu-8792.61.2 | — | -72 |
| xnu-8792.81.2 | — | -72 |
| xnu-8796.101.5 | — | -72 |
| xnu-8796.121.2 | — | -72 |
| xnu-8796.141.3 | — | -72 |
Notes
Given a voucher port and an attribute key (MACH_VOUCHER_ATTR_KEY_BANK, _IMPORTANCE, _USER_DATA, _PTHPRIORITY, etc.), this trap copies out the encoded recipe so userland code can inspect what the voucher carries. Used by libdispatch and the importance APIs to reason about inherited QoS without going through full MIG.
Related APIs
host_create_mach_voucher_trapvoucher_copyxpc_connection_get_pidproc_pidoriginatorinfo