macOS MACH Traps

Generated from XNU-4570.41.2/ on Tuesday, 13 February 2018 by @andrzejdyjak.

Description for JSON dump elements:

[
	trap number,
	return type,
	trap name,
	number of args,
	how wide argument structure is (in 32-bit words; it's related to munger),
	arg 1, ..., arg n,
	munger,
	source
]

You can find github repository here. Feedback, ideas, bugs, et ceteragive me a shout.

# Name Arg#1 Arg#2 Arg#3 Arg#4 Arg#5 Arg#6 Arg#7 Arg#8 Munger Implementation
0 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
1 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
2 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
3 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
4 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
5 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
6 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
7 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
8 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
9 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
10 kern_return_t _kernelrpc_mach_vm_allocate mach_port_name_t target mach_vm_offset_t *addr mach_vm_size_t size int flags - - - - munge_wwlw osfmk/ipc/mach_kernelrpc.c
11 kern_return_t _kernelrpc_mach_vm_purgable_control mach_port_name_t target mach_vm_offset_t address vm_purgable_t control int *state - - - - munge_wlww osfmk/ipc/mach_kernelrpc.c
12 kern_return_t _kernelrpc_mach_vm_deallocate mach_port_name_t target mach_vm_address_t address mach_vm_size_t size - - - - - munge_wll osfmk/ipc/mach_kernelrpc.c
13 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
14 kern_return_t _kernelrpc_mach_vm_protect mach_port_name_t target mach_vm_address_t address mach_vm_size_t size boolean_t set_maximum vm_prot_t new_protection - - - munge_wllww osfmk/ipc/mach_kernelrpc.c
15 kern_return_t _kernelrpc_mach_vm_map mach_port_name_t target mach_vm_offset_t *address mach_vm_size_t size mach_vm_offset_t mask int flags vm_prot_t cur_protection - - munge_wwllww osfmk/ipc/mach_kernelrpc.c
16 kern_return_t _kernelrpc_mach_port_allocate mach_port_name_t target mach_port_right_t right mach_port_name_t *name - - - - - munge_www osfmk/ipc/mach_kernelrpc.c
17 kern_return_t _kernelrpc_mach_port_destroy mach_port_name_t target mach_port_name_t name - - - - - - munge_ww osfmk/ipc/mach_kernelrpc.c
18 kern_return_t _kernelrpc_mach_port_deallocate mach_port_name_t target mach_port_name_t name - - - - - - munge_ww osfmk/ipc/mach_kernelrpc.c
19 kern_return_t _kernelrpc_mach_port_mod_refs mach_port_name_t target mach_port_name_t name mach_port_right_t right mach_port_delta_t delta - - - - munge_wwww osfmk/ipc/mach_kernelrpc.c
20 kern_return_t _kernelrpc_mach_port_move_member mach_port_name_t target mach_port_name_t member mach_port_name_t after - - - - - munge_www osfmk/ipc/mach_kernelrpc.c
21 kern_return_t _kernelrpc_mach_port_insert_right mach_port_name_t target mach_port_name_t name mach_port_name_t poly mach_msg_type_name_t polyPoly - - - - munge_wwww osfmk/ipc/mach_kernelrpc.c
22 kern_return_t _kernelrpc_mach_port_insert_member mach_port_name_t target mach_port_name_t name mach_port_name_t pset - - - - - munge_www osfmk/ipc/mach_kernelrpc.c
23 kern_return_t _kernelrpc_mach_port_extract_member mach_port_name_t target mach_port_name_t name mach_port_name_t pset - - - - - munge_www osfmk/ipc/mach_kernelrpc.c
24 kern_return_t _kernelrpc_mach_port_construct mach_port_name_t target mach_port_options_t *options uint64_t context mach_port_name_t *name - - - - munge_wwlw osfmk/ipc/mach_kernelrpc.c
25 kern_return_t _kernelrpc_mach_port_destruct mach_port_name_t target mach_port_name_t name mach_port_delta_t srdelta uint64_t guard - - - - munge_wwwl osfmk/ipc/mach_kernelrpc.c
26 mach_port_name_t mach_reply_port - - - - - - - - - osfmk/kern/ipc_tt.c
27 mach_port_name_t thread_self - - - - - - - - - osfmk/kern/ipc_tt.c
28 mach_port_name_t task_self - - - - - - - - - osfmk/kern/ipc_tt.c
29 mach_port_name_t host_self - - - - - - - - - osfmk/kern/ipc_host.c
30 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
31 mach_msg_return_t mach_msg mach_msg_header_t *msg mach_msg_option_t option mach_msg_size_t send_size mach_msg_size_t rcv_size mach_port_name_t rcv_name mach_msg_timeout_t timeout mach_port_name_t notify - munge_wwwwwww osfmk/ipc/mach_msg.c
32 mach_msg_return_t mach_msg_overwrite mach_msg_header_t *msg mach_msg_option_t option mach_msg_size_t send_size mach_msg_size_t rcv_size mach_port_name_t rcv_name mach_msg_timeout_t timeout mach_msg_priority_t override mach_msg_header_t *rcv_msg munge_wwwwwwww osfmk/ipc/mach_msg.c
33 kern_return_t semaphore_signal mach_port_name_t signal_name - - - - - - - munge_w osfmk/kern/sync_sema.c
34 kern_return_t semaphore_signal_all mach_port_name_t signal_name - - - - - - - munge_w osfmk/kern/sync_sema.c
35 kern_return_t semaphore_signal_thread mach_port_name_t signal_name mach_port_name_t thread_name - - - - - - munge_ww osfmk/kern/sync_sema.c
36 kern_return_t semaphore_wait mach_port_name_t wait_name - - - - - - - munge_w osfmk/kern/sync_sema.c
37 kern_return_t semaphore_wait_signal mach_port_name_t wait_name mach_port_name_t signal_name - - - - - - munge_ww osfmk/kern/sync_sema.c
38 kern_return_t semaphore_timedwait mach_port_name_t wait_name unsigned int sec clock_res_t nsec - - - - - munge_www osfmk/kern/sync_sema.c
39 kern_return_t semaphore_timedwait_signal mach_port_name_t wait_name mach_port_name_t signal_name unsigned int sec clock_res_t nsec - - - - munge_wwww osfmk/kern/sync_sema.c
40 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
41 kern_return_t _kernelrpc_mach_port_guard mach_port_name_t target mach_port_name_t name uint64_t guard boolean_t strict - - - - munge_wwlw osfmk/ipc/mach_kernelrpc.c
42 kern_return_t _kernelrpc_mach_port_unguard mach_port_name_t target mach_port_name_t name uint64_t guard - - - - - munge_wwl osfmk/ipc/mach_kernelrpc.c
43 kern_return_t mach_generate_activity_id mach_port_name_t target int count uint64_t *activity_id - - - - - munge_www osfmk/ipc/ipc_voucher.c
44 kern_return_t task_name_for_pid mach_port_name_t target_tport int pid mach_port_name_t *tn - - - - - munge_www bsd/vm/vm_unix.c
45 kern_return_t task_for_pid mach_port_name_t target_tport int pid mach_port_name_t *t - - - - - munge_www bsd/vm/vm_unix.c
46 kern_return_t pid_for_task mach_port_name_t t int *x - - - - - - munge_ww bsd/vm/vm_unix.c
47 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
48 kern_return_t macx_swapon uint64_t filename int flags int size int priority - - - - munge_lwww bsd/vm/dp_backing_file.c
49 kern_return_t macx_swapoff uint64_t filename int flags - - - - - - munge_lw bsd/vm/dp_backing_file.c
50 mach_port_name_t thread_get_special_reply_port - - - - - - - - - osfmk/kern/ipc_tt.c
51 kern_return_t macx_triggers int hi_water int low_water int flags mach_port_t alert_port - - - - munge_wwww bsd/vm/dp_backing_file.c
52 kern_return_t macx_backing_store_suspend boolean_t suspend - - - - - - - munge_w bsd/vm/dp_backing_file.c
53 kern_return_t macx_backing_store_recovery int pid - - - - - - - munge_w bsd/vm/dp_backing_file.c
54 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
55 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
56 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
57 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
58 kern_return_t pfz_exit - - - - - - - - - osfmk/kern/syscall_subr.c
59 boolean_t swtch_pri - - - - - - - - - osfmk/kern/syscall_subr.c
60 boolean_t swtch - - - - - - - - - osfmk/kern/syscall_subr.c
61 kern_return_t thread_switch mach_port_name_t thread_name int option mach_msg_timeout_t option_time - - - - - munge_www osfmk/kern/syscall_subr.c
62 kern_return_t clock_sleep mach_port_name_t clock_name sleep_type_t sleep_type int sleep_sec int sleep_nsec mach_timespec_t *wakeup_time - - - munge_wwwww osfmk/kern/clock_oldops.c
63 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
64 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
65 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
66 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
67 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
68 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
69 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
70 kern_return_t host_create_mach_voucher mach_port_name_t host mach_voucher_attr_raw_recipe_array_t recipes int recipes_size mach_port_name_t *voucher - - - - munge_wwww osfmk/ipc/mach_kernelrpc.c
71 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
72 kern_return_t mach_voucher_extract_attr_recipe mach_port_name_t voucher_name mach_voucher_attr_key_t key mach_voucher_attr_raw_recipe_t recipe mach_msg_type_number_t *recipe_size - - - - munge_wwww osfmk/ipc/mach_kernelrpc.c
73 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
74 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
75 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
76 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
77 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
78 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
79 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
80 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
81 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
82 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
83 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
84 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
85 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
86 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
87 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
88 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
89 kern_return_t mach_timebase_info user_addr_t info - - - - - - - munge_w osfmk/kern/clock.c
90 kern_return_t mach_wait_until uint64_t deadline - - - - - - - munge_l osfmk/kern/clock.c
91 mach_port_name_t mk_timer_create - - - - - - - - - osfmk/kern/mk_timer.c
92 kern_return_t mk_timer_destroy mach_port_name_t name - - - - - - - munge_w osfmk/kern/mk_timer.c
93 kern_return_t mk_timer_arm mach_port_name_t name uint64_t expire_time - - - - - - munge_wl osfmk/kern/mk_timer.c
94 kern_return_t mk_timer_cancel mach_port_name_t name user_addr_t result_time - - - - - - munge_ww osfmk/kern/mk_timer.c
95 kern_return_t mk_timer_arm_leeway mach_port_name_t name uint64_t mk_timer_flags uint64_t expire_time uint64_t mk_leeway - - - - munge_wlll osfmk/kern/mk_timer.c
96 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
97 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
98 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
99 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
100 kern_return_t iokit_user_client void * userClientRef uint32_t index void * p1 void * p2 void * p3 void * p4 void * p5 void * p6 munge_wwwwwwww iokit/Kernel/IOUserClient.cpp
101 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
102 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
103 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
104 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
105 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
106 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
107 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
108 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
109 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
110 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
111 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
112 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
113 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
114 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
115 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
116 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
117 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
118 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
119 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
120 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
121 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
122 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
123 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
124 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
125 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
126 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c
127 kern_return_t kern_invalid - - - - - - - - - osfmk/kern/syscall_sw.c