Mach trap#-91
svc · mach trap -91
mk_timer_destroy
Tear down a previously created mk_timer port and release its kernel state.
Prototype
kern_return_t mk_timer_destroy(/* 1 args */);Returns: kern_return_t
Version history
| XNU tag | macOS | # |
|---|---|---|
| xnu-123.5 | macOS 10.0 Cheetah | -91 |
| xnu-201 | macOS 10.1 Puma | -91 |
| xnu-344 | macOS 10.2 Jaguar | -91 |
| xnu-517 | macOS 10.3 Panther | -91 |
| xnu-124.1 | — | -91 |
| xnu-124.13 | — | -91 |
| xnu-124.7 | — | -91 |
| xnu-201.14 | — | -91 |
| xnu-201.19 | — | -91 |
| xnu-201.19.3 | — | -91 |
| xnu-201.42.3 | — | -91 |
| xnu-201.5 | — | -91 |
| xnu-344.12.2 | — | -91 |
| xnu-344.2 | — | -91 |
| xnu-344.21.73 | — | -91 |
| xnu-344.21.74 | — | -91 |
| xnu-344.23 | — | -91 |
| xnu-344.26 | — | -91 |
| xnu-344.32 | — | -91 |
| xnu-344.34 | — | -91 |
| xnu-344.49 | — | -91 |
| xnu-517.11.1 | — | -91 |
| xnu-517.12.7 | — | -91 |
| xnu-517.3.15 | — | -91 |
| xnu-517.3.7 | — | -91 |
| xnu-517.7.21 | — | -91 |
| xnu-517.7.7 | — | -91 |
| xnu-517.9.4 | — | -91 |
| xnu-517.9.5 | — | -91 |
Notes
mk_timer_destroy cancels any pending arm and frees the associated thread_call, then deallocates the receive right. After destroy, the port name is invalid for further mk_timer_* calls. Calling mach_port_destroy on the timer port has the same effect via the port's no-more-senders path.
Related APIs
mk_timer_destroy_trapmk_timer_createmach_port_destroy