1 $NetBSD: mach_services.master,v 1.11.2.4 2005/03/04 16:40:12 skrll Exp $
8 #include <compat/mach/mach_types.h>
9 #include <compat/mach/mach_message.h>
10 #include <compat/mach/mach_bootstrap.h>
11 #include <compat/mach/mach_iokit.h>
12 #include <compat/mach/mach_clock.h>
13 #include <compat/mach/mach_host.h>
14 #include <compat/mach/mach_port.h>
15 #include <compat/mach/mach_task.h>
16 #include <compat/mach/mach_thread.h>
17 #include <compat/mach/mach_semaphore.h>
18 #include <compat/mach/mach_notify.h>
19 #include <compat/mach/mach_exception.h>
20 #include <compat/mach/mach_vm.h>
21 #include <compat/mach/mach_services.h>
26 ; Port Notification messages
29 65 NODEF notify_port_deleted
30 66 OBSOL notify_msg_accepted
31 67 OBSOL notify_ownership_rights
32 68 OBSOL notify_receive_rights
33 69 NODEF notify_port_destroyed
34 70 NODEF notify_port_no_senders
35 71 NODEF notify_port_send_once
36 72 NODEF notify_port_dead_name
42 201 UNIMPL host_kernel_version
43 202 STD host_page_size
44 203 UNIMPL memory_object_memory_entry
45 204 UNIMPL host_processor_info
46 205 STD host_get_io_master
47 206 STD host_get_clock_service
48 207 UNIMPL kmod_get_info
49 208 UNIMPL host_zone_info
50 209 UNIMPL host_virtual_physical_table_info
51 210 UNIMPL host_ipc_hash_info
52 ; Probably Darwin specific...
53 211 UNIMPL enable_bluebox
54 212 UNIMPL disable_bluebox
55 213 STD processor_set_default
56 214 UNIMPL processor_set_create
57 215 UNIMPL memory_object_memory_entry_64
58 216 UNIMPL host_statistics
61 ; Host subsystem (private)
63 400 UNIMPL host_get_boot_info
64 401 UNIMPL host_reboot
65 402 UNIMPL host_priv_statistics
66 ; Implemented by mach_init, clashes with host_default_memory_manager
67 403 UNIMPL boostrap_register
68 ; Implemented by mach_init, clashes with vm_wire
69 404 STD bootstrap_look_up
70 405 UNIMPL thread_wire
71 406 UNIMPL vm_allocate_cpm
72 407 UNIMPL host_processors
73 408 UNIMPL host_get_clock_control
74 409 UNIMPL kmod_create
75 410 UNIMPL kmod_destroy
76 411 UNIMPL kmod_control
77 412 UNIMPL host_get_special_port
78 413 UNIMPL host_set_special_port
79 414 UNIMPL host_set_exception_ports
80 415 UNIMPL host_get_exception_ports
81 416 UNIMPL host_swap_exception_ports
82 417 UNIMPL host_load_symbol_table
83 418 UNIMPL task_swappable
84 419 UNIMPL host_processor_sets
85 420 STD host_processor_set_priv
86 421 UNIMPL set_dp_control_port
87 422 UNIMPL get_dp_control_port
88 423 UNIMPL host_set_UNDServer
89 424 UNIMPL host_get_UNDServer
94 600 UNIMPL host_security_create_task_token
95 601 UNIMPL host_security_set_task_token
100 1000 STD clock_get_time
101 1001 UNIMPL clock_get_attributes
102 1002 UNIMPL clock_alarm
105 ; Clock subsystem (private)
107 1200 UNIMPL clock_set_time
108 1201 UNIMPL clock_set_attributes
113 2000 UNIMPL memory_object_get_attributes
114 2001 UNIMPL memory_object_change_attributes
115 2002 UNIMPL memory_object_synchronize_completed
116 2003 UNIMPL memory_object_lock_request
117 2004 UNIMPL memory_object_destroy
118 2005 UNIMPL memory_object_upl_request
119 2006 UNIMPL memory_object_super_upl_request
120 2007 UNIMPL memory_object_page_op
121 2008 UNIMPL memory_object_recover_named
122 2009 UNIMPL memory_object_release_name
125 ; UPL (External memory management)
127 2050 UNIMPL upl_abort
128 2051 UNIMPL upl_abort_range
129 2052 UNIMPL upl_commit
130 2053 UNIMPL upl_commit_range
133 ; Memory management (control)
135 2200 UNIMPL memory_object_init
136 2201 UNIMPL memory_object_terminate
137 2202 UNIMPL memory_object_data_request
138 2203 UNIMPL memory_object_data_return
139 2204 UNIMPL memory_object_data_initialize
140 2205 UNIMPL memory_object_data_unlock
141 2206 UNIMPL memory_object_synchronize
142 2207 UNIMPL memory_object_unmap
145 ; Memory management (default)
147 2250 UNIMPL memory_object_create
150 ; Default pager (object)
152 2275 UNIMPL default_pager_object_create
153 2276 UNIMPL default_pager_info
154 2277 UNIMPL default_pager_objects
155 2278 UNIMPL default_pager_object_pages
156 2279 UNIMPL default_pager_backing_store_create
157 2280 UNIMPL default_pager_backing_store_delete
158 2281 UNIMPL default_pager_add_segment
159 2282 UNIMPL default_pager_backing_store_info
160 2283 UNIMPL default_pager_add_file
161 2284 UNIMPL default_pager_triggers
164 ; Default pager (alerts)
166 2295 UNIMPL default_pager_space_alert
169 ; Mach exception interface
171 2401 NODEF exception_raise
172 2402 NODEF exception_raise_state
173 2403 NODEF exception_raise_state_identity
182 ; Mach exception Replies.
183 ; Defined because the kernel is the client here:
184 ; it has to handle replies instead of reequest.
186 2501 STD exception_raise
187 2502 STD exception_raise_state
188 2503 STD exception_raise_state_identity
193 2800 STD io_object_get_class
194 2801 STD io_object_conforms_to
195 2802 STD io_iterator_next
196 2803 STD io_iterator_reset
197 2804 STD io_service_get_matching_services
198 2805 STD io_registry_entry_get_property
199 2806 UNIMPL io_registry_create_iterator
200 2807 UNIMPL io_registry_iterator_enter_entry
201 2808 UNIMPL io_registry_iterator_exit_entry
202 2809 STD io_registry_entry_from_path
203 2810 UNIMPL io_registry_entry_get_name
204 2811 STD io_registry_entry_get_properties
205 2812 UNIMPL io_registry_entry_get_property_bytes
206 2813 STD io_registry_entry_get_child_iterator
207 2814 STD io_registry_entry_get_parent_iterator
208 2815 STD io_service_open
209 2816 STD io_service_close
210 2817 STD io_connect_get_service
211 2818 STD io_connect_set_notification_port
212 2819 STD io_connect_map_memory
213 2820 STD io_connect_add_client
214 2821 STD io_connect_set_properties
215 2822 STD io_connect_method_scalari_scalaro
216 2823 STD io_connect_method_scalari_structo
217 2824 STD io_connect_method_scalari_structi
218 2825 STD io_connect_method_structi_structo
219 2826 STD io_registry_entry_get_path
220 2827 STD io_registry_get_root_entry
221 2828 UNIMPL io_registry_entry_set_properties
222 2829 UNIMPL io_registry_entry_in_plane
223 2830 UNIMPL io_object_get_retain_count
224 2831 UNIMPL io_service_get_busy_state
225 2832 UNIMPL io_service_wait_quiet
226 2833 STD io_registry_entry_create_iterator
227 2834 UNIMPL io_iterator_is_valid
228 2835 UNIMPL io_make_matching
229 2836 UNIMPL io_catalog_send_data
230 2837 UNIMPL io_catalog_terminate
231 2838 UNIMPL io_catalog_get_data
232 2839 UNIMPL io_catalog_get_gen_count
233 2840 UNIMPL io_catalog_module_loaded
234 2841 UNIMPL io_catalog_reset
235 2842 UNIMPL io_service_request_probe
236 2843 STD io_registry_entry_get_name_in_plane
237 2844 UNIMPL io_service_match_property_table
238 2845 UNIMPL io_async_method_scalari_scalaro
239 2846 UNIMPL io_async_method_scalari_structo
240 2847 UNIMPL io_async_method_scalari_structi
241 2848 UNIMPL io_async_method_structi_structo
242 2849 UNIMPL io_service_add_notification
243 2850 STD io_service_add_interest_notification
244 2851 UNIMPL io_service_acknowledge_notification
245 2852 UNIMPL io_connect_get_notification_semaphore
246 2853 UNIMPL io_connect_unmap_memory
247 2854 STD io_registry_entry_get_location_in_plane
248 2855 UNIMPL io_registry_entry_get_property_recursively
251 ; Processor subsystem
253 3000 UNIMPL processor_start
254 3001 UNIMPL processor_exit
255 3002 UNIMPL processor_info
256 3003 UNIMPL processor_control
257 3004 UNIMPL processor_assign
258 3005 UNIMPL processor_get_assignment
263 3200 UNIMPL port_names
265 3202 UNIMPL port_rename
266 3203 UNIMPL port_allocate_name
267 3204 STD port_allocate
268 3205 STD port_destroy
269 3206 STD port_deallocate
270 3207 STD port_get_refs
271 3208 STD port_mod_refs
272 3210 UNIMPL port_set_mscount
273 3211 UNIMPL port_get_set_status
274 3212 STD port_move_member
275 3213 STD port_request_notification
276 3214 STD port_insert_right
277 3215 UNIMPL port_extract_right
278 3216 UNIMPL port_set_seqno
279 3217 STD port_get_attributes
280 3218 STD port_set_attributes
281 3219 UNIMPL port_allocate_qos
282 3220 UNIMPL port_allocate_full
283 3221 UNIMPL task_set_port_space
284 3222 UNIMPL port_get_srights
285 3223 UNIMPL port_space_info
286 3224 UNIMPL port_dnrequest_info
287 3225 UNIMPL port_kernel_object
288 3226 STD port_insert_member
289 3227 UNIMPL port_extract_member
294 3400 UNIMPL task_create
295 3401 STD task_terminate
296 3402 STD task_threads
297 3403 UNIMPL ports_register
298 3404 STD ports_lookup
300 3406 UNIMPL task_set_info
301 3407 STD task_suspend
303 3409 STD task_get_special_port
304 3410 STD task_set_special_port
305 3411 UNIMPL thread_create
306 3412 STD thread_create_running
307 3413 STD task_set_exception_ports
308 3414 STD task_get_exception_ports
309 3415 UNIMPL task_swap_exception_ports
310 3416 UNIMPL lock_set_create
311 3417 UNIMPL lock_set_destroy
312 3418 STD semaphore_create
313 3419 STD semaphore_destroy
314 3420 UNIMPL task_policy_set
315 3421 UNIMPL task_policy_get
316 3422 UNIMPL task_sample
317 3423 UNIMPL task_policy
318 3424 UNIMPL task_set_emulation
319 3425 UNIMPL task_get_emulation_vector
320 3426 UNIMPL task_set_emulation_vector
321 3427 UNIMPL task_set_ras_pc
322 3428 UNIMPL kernel_task_create
323 3429 UNIMPL task_assign
324 3430 UNIMPL task_assign_default
325 3431 UNIMPL task_get_assignment
326 3432 UNIMPL task_set_policy
331 3600 UNIMPL thread_terminate
332 3601 UNIMPL act_get_state
333 3602 UNIMPL act_set_state
334 3603 STD thread_get_state
335 3604 STD thread_set_state
336 3605 STD thread_suspend
337 3606 STD thread_resume
338 3607 STD thread_abort
339 3608 UNIMPL thread_abort_safely
340 3609 UNIMPL thread_depress_abort
341 3610 UNIMPL thread_get_special_port
342 3611 UNIMPL thread_set_special_port
344 3613 UNIMPL thread_set_exception_ports
345 3614 UNIMPL thread_get_exception_ports
346 3615 UNIMPL thread_swap_exception_ports
347 3616 STD thread_policy
348 3617 UNIMPL thread_policy_set
349 3618 UNIMPL thread_policy_get
350 3619 UNIMPL thread_sample
351 3620 UNIMPL etap_trace_thread
352 3621 UNIMPL thread_assign
353 3622 UNIMPL thread_assign_default
354 3623 UNIMPL thread_get_assignment
355 3624 STD thread_set_policy
362 3802 STD vm_deallocate
366 3806 UNIMPL vm_read_list
369 3809 UNIMPL vm_read_overwrite
371 3811 UNIMPL vm_behavior_set
373 3813 STD vm_machine_attribute
375 3815 UNIMPL task_wire
376 3816 UNIMPL make_memory_entry
377 3817 UNIMPL vm_map_page_query
378 3818 UNIMPL vm_region_info
379 3819 UNIMPL vm_mapped_pages_info
380 3820 UNIMPL vm_region_object_create
381 3821 UNIMPL vm_region_recurse
382 3822 UNIMPL vm_region_recurse_64
383 3823 UNIMPL vm_region_info_64
384 3824 STD vm_region_64
385 3825 STD make_memory_entry_64
386 3826 UNIMPL vm_map_64
387 3827 UNIMPL vm_map_get_upl
388 3828 UNIMPL vm_upl_map
389 3829 UNIMPL vm_upl_unmap
394 4000 UNIMPL processor_set_statistics
395 4001 UNIMPL processor_set_destroy
396 4002 UNIMPL processor_set_max_priority
397 4003 UNIMPL processor_set_policy_enable
398 4004 UNIMPL processor_set_policy_disable
399 4005 UNIMPL processor_set_tasks
400 4006 UNIMPL processor_set_threads
401 4007 UNIMPL processor_set_policy_control
402 4008 UNIMPL processor_set_stack_usage
403 4009 UNIMPL processor_set_info
408 5000 UNIMPL ledger_create
409 5001 UNIMPL ledger_terminate
410 5002 UNIMPL ledger_transfer
411 5003 UNIMPL ledger_read
414 ; User Notification subsystem (UNDRequest)
416 6000 UNIMPL und_execute_rpc
417 6001 UNIMPL und_display_notice_from_bundle_rpc
418 6002 UNIMPL und_display_alert_from_bundle_rpc
419 6003 UNIMPL und_display_custom_from_bundle_rpc
420 6004 UNIMPL und_display_custom_from_dictionary_rpc
421 6005 UNIMPL und_cancel_notification_rpc
422 6006 UNIMPL und_display_notice_simple_rpc
423 6007 UNIMPL und_display_alert_simple_rpc
426 ; User Notification subsystem (UNDReply)
428 6200 UNIMPL und_alert_completed_with_result_rpc
429 6201 UNIMPL und_notification_created_rpc(
434 555001 UNIMPL task_set_child_node
435 555002 UNIMPL norma_node_self
436 555005 UNIMPL norma_task_clone
437 555006 UNIMPL norma_task_create
438 555007 UNIMPL norma_get_special_port
439 555008 UNIMPL norma_set_special_port
440 555009 UNIMPL norma_task_teleport
441 555012 UNIMPL norma_port_location_hint
444 ; Sync, overlapping with Lock set
446 ;617000 UNIMPL semaphore_create
447 ;617001 UNIMPL semaphore_destroy
448 ;617002 UNIMPL semaphore_signal
449 ;617003 UNIMPL semaphore_signal_all
450 ;617004 UNIMPL semaphore_wait
451 ;617013 UNIMPL semaphore_signal_thread
452 ;617014 UNIMPL semaphore_timedwait
457 617000 UNIMPL lock_acquire
458 617001 UNIMPL lock_release
459 617002 UNIMPL lock_try
460 617003 UNIMPL lock_make_stable
461 617004 UNIMPL lock_handoff
462 617005 UNIMPL lock_handoff_accept
463 617005 UNIMPL lock_set_create
464 617006 UNIMPL lock_set_destroy
465 617007 UNIMPL lock_acquire
466 617008 UNIMPL lock_release
467 617009 UNIMPL lock_try
468 617010 UNIMPL lock_make_stable
469 617011 UNIMPL lock_handoff
470 617012 UNIMPL lock_handoff_accept
475 617200 UNIMPL semaphore_signal
476 617201 UNIMPL semaphore_signal_all
477 617202 UNIMPL semaphore_wait
478 617203 UNIMPL semaphore_signal_thread
479 617204 UNIMPL semaphore_timedwait
480 617205 UNIMPL semaphore_wait_signal
481 617206 UNIMPL semaphore_timedwait_signal