iTry to gather as much Mach services names as possible, this way we

will have unimplemented services showing their names in ktrace

Add a new generated file with only service id and name, which will
be included by kdump to display services names.

This removes the need for using the user ktrace facility for services names.
This commit is contained in:
manu 2003-11-15 22:55:35 +00:00
parent ac52f1946b
commit 4513f19345
7 changed files with 639 additions and 276 deletions

View File

@ -1,9 +1,9 @@
# $NetBSD: Makefile,v 1.4 2003/11/15 20:30:59 thorpej Exp $
# $NetBSD: Makefile,v 1.5 2003/11/15 22:55:35 manu Exp $
SYSCALL_DEP= syscalls.conf syscalls.master ../../kern/makesyscalls.sh
SYSCALL_OBJS= mach_sysent.c mach_syscalls.c mach_syscall.h mach_syscallargs.h
MACH_DEP= mach_services.master makemachservices.sh
MACH_OBJ= mach_services.c mach_services.h
MACH_OBJ= mach_services.c mach_services.h mach_services_names.c
all: ${SYSCALL_OBJS} ${MACH_OBJ}

View File

@ -1,4 +1,4 @@
/* $NetBSD: mach_message.c,v 1.28 2003/11/13 13:40:39 manu Exp $ */
/* $NetBSD: mach_message.c,v 1.29 2003/11/15 22:55:35 manu Exp $ */
/*-
* Copyright (c) 2002-2003 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mach_message.c,v 1.28 2003/11/13 13:40:39 manu Exp $");
__KERNEL_RCSID(0, "$NetBSD: mach_message.c,v 1.29 2003/11/15 22:55:35 manu Exp $");
#include "opt_ktrace.h"
#include "opt_compat_mach.h" /* For COMPAT_MACH in <sys/ktrace.h> */
@ -208,16 +208,6 @@ mach_sys_msg_overwrite_trap(l, v, retval)
goto out1;
}
#ifdef KTRACE
/*
* It is convenient to record in kernel trace
* the name of the server that has been used,
* it makes traces easier to read. The user
* facility does not produce a perfect result,
* but at least we have the information.
*/
ktruser(p, srv->srv_name, NULL, 0, 0);
#endif
/*
* Sanity check message length. We do not want the
* server to:

View File

@ -1,14 +1,14 @@
/* $NetBSD: mach_services.c,v 1.3 2003/11/15 17:45:34 manu Exp $ */
/* $NetBSD: mach_services.c,v 1.4 2003/11/15 22:55:35 manu Exp $ */
/*
* Mach services table.
*
* DO NOT EDIT -- this file is automatically generated.
* created from ;
* created from $NetBSD: mach_services.c,v 1.4 2003/11/15 22:55:35 manu Exp $
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mach_services.c,v 1.3 2003/11/15 17:45:34 manu Exp $");
__KERNEL_RCSID(0, "$NetBSD: mach_services.c,v 1.4 2003/11/15 22:55:35 manu Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -27,115 +27,115 @@ __KERNEL_RCSID(0, "$NetBSD: mach_services.c,v 1.3 2003/11/15 17:45:34 manu Exp $
struct mach_service mach_services_table[] = {
{64, NULL, "obsolete notify_first", 0, 0},
{65, NULL, "notify_port_deleted", 0, 0},
{65, NULL, "unimpl. notify_port_deleted", 0, 0},
{66, NULL, "obsolete notify_msg_accepted", 0, 0},
{67, NULL, "obsolete notify_ownership_rights", 0, 0},
{68, NULL, "obsolete notify_receive_rights", 0, 0},
{69, NULL, "notify_port_destroyed", 0, 0},
{70, NULL, "notify_port_no_senders", 0, 0},
{71, NULL, "notify_port_send_once", 0, 0},
{72, NULL, "notify_port_dead_name", 0, 0},
{69, NULL, "unimpl. notify_port_destroyed", 0, 0},
{70, NULL, "unimpl. notify_port_no_senders", 0, 0},
{71, NULL, "unimpl. notify_port_send_once", 0, 0},
{72, NULL, "unimpl. notify_port_dead_name", 0, 0},
{200, mach_host_info, "host_info", sizeof(mach_host_info_request_t), sizeof(mach_host_info_reply_t)},
{201, NULL, "host_kernel_version", 0, 0},
{201, NULL, "unimpl. host_kernel_version", 0, 0},
{202, mach_host_page_size, "host_page_size", sizeof(mach_host_page_size_request_t), sizeof(mach_host_page_size_reply_t)},
{203, NULL, "memory_object_memory_entry", 0, 0},
{204, NULL, "host_processor_info", 0, 0},
{203, NULL, "unimpl. memory_object_memory_entry", 0, 0},
{204, NULL, "unimpl. host_processor_info", 0, 0},
{205, mach_host_get_io_master, "host_get_io_master", sizeof(mach_host_get_io_master_request_t), sizeof(mach_host_get_io_master_reply_t)},
{206, mach_host_get_clock_service, "host_get_clock_service", sizeof(mach_host_get_clock_service_request_t), sizeof(mach_host_get_clock_service_reply_t)},
{207, NULL, "kmod_get_info", 0, 0},
{208, NULL, "host_zone_info", 0, 0},
{209, NULL, "host_virtual_physical_table_info", 0, 0},
{210, NULL, "host_ipc_hash_info", 0, 0},
{211, NULL, "enable_bluebox", 0, 0},
{212, NULL, "disable_bluebox", 0, 0},
{213, NULL, "processor_set_default", 0, 0},
{214, NULL, "processor_set_create", 0, 0},
{215, NULL, "memory_object_memory_entry_64", 0, 0},
{216, NULL, "host_statistics", 0, 0},
{400, NULL, "host_get_boot_info", 0, 0},
{401, NULL, "host_reboot", 0, 0},
{402, NULL, "host_priv_statistics", 0, 0},
{403, NULL, "host_default_memory_manager", 0, 0},
{207, NULL, "unimpl. kmod_get_info", 0, 0},
{208, NULL, "unimpl. host_zone_info", 0, 0},
{209, NULL, "unimpl. host_virtual_physical_table_info", 0, 0},
{210, NULL, "unimpl. host_ipc_hash_info", 0, 0},
{211, NULL, "unimpl. enable_bluebox", 0, 0},
{212, NULL, "unimpl. disable_bluebox", 0, 0},
{213, NULL, "unimpl. processor_set_default", 0, 0},
{214, NULL, "unimpl. processor_set_create", 0, 0},
{215, NULL, "unimpl. memory_object_memory_entry_64", 0, 0},
{216, NULL, "unimpl. host_statistics", 0, 0},
{400, NULL, "unimpl. host_get_boot_info", 0, 0},
{401, NULL, "unimpl. host_reboot", 0, 0},
{402, NULL, "unimpl. host_priv_statistics", 0, 0},
{403, NULL, "unimpl. host_default_memory_manager", 0, 0},
{404, mach_bootstrap_look_up, "bootstrap_look_up", sizeof(mach_bootstrap_look_up_request_t), sizeof(mach_bootstrap_look_up_reply_t)},
{405, NULL, "thread_wire", 0, 0},
{406, NULL, "vm_allocate_cpm", 0, 0},
{407, NULL, "host_processors", 0, 0},
{408, NULL, "host_get_clock_control", 0, 0},
{409, NULL, "kmod_create", 0, 0},
{410, NULL, "kmod_destroy", 0, 0},
{411, NULL, "kmod_control", 0, 0},
{412, NULL, "host_get_special_port", 0, 0},
{413, NULL, "host_set_special_port", 0, 0},
{414, NULL, "host_set_exception_ports", 0, 0},
{415, NULL, "host_get_exception_ports", 0, 0},
{416, NULL, "host_swap_exception_ports", 0, 0},
{417, NULL, "host_load_symbol_table", 0, 0},
{418, NULL, "task_swappable", 0, 0},
{419, NULL, "host_processor_sets", 0, 0},
{420, NULL, "host_processor_set_priv", 0, 0},
{421, NULL, "set_dp_control_port", 0, 0},
{422, NULL, "get_dp_control_port", 0, 0},
{423, NULL, "host_set_UNDServer", 0, 0},
{424, NULL, "host_get_UNDServer", 0, 0},
{600, NULL, "host_security_create_task_token", 0, 0},
{601, NULL, "host_security_set_task_token", 0, 0},
{405, NULL, "unimpl. thread_wire", 0, 0},
{406, NULL, "unimpl. vm_allocate_cpm", 0, 0},
{407, NULL, "unimpl. host_processors", 0, 0},
{408, NULL, "unimpl. host_get_clock_control", 0, 0},
{409, NULL, "unimpl. kmod_create", 0, 0},
{410, NULL, "unimpl. kmod_destroy", 0, 0},
{411, NULL, "unimpl. kmod_control", 0, 0},
{412, NULL, "unimpl. host_get_special_port", 0, 0},
{413, NULL, "unimpl. host_set_special_port", 0, 0},
{414, NULL, "unimpl. host_set_exception_ports", 0, 0},
{415, NULL, "unimpl. host_get_exception_ports", 0, 0},
{416, NULL, "unimpl. host_swap_exception_ports", 0, 0},
{417, NULL, "unimpl. host_load_symbol_table", 0, 0},
{418, NULL, "unimpl. task_swappable", 0, 0},
{419, NULL, "unimpl. host_processor_sets", 0, 0},
{420, NULL, "unimpl. host_processor_set_priv", 0, 0},
{421, NULL, "unimpl. set_dp_control_port", 0, 0},
{422, NULL, "unimpl. get_dp_control_port", 0, 0},
{423, NULL, "unimpl. host_set_UNDServer", 0, 0},
{424, NULL, "unimpl. host_get_UNDServer", 0, 0},
{600, NULL, "unimpl. host_security_create_task_token", 0, 0},
{601, NULL, "unimpl. host_security_set_task_token", 0, 0},
{1000, mach_clock_get_time, "clock_get_time", sizeof(mach_clock_get_time_request_t), sizeof(mach_clock_get_time_reply_t)},
{1001, NULL, "clock_get_attributes", 0, 0},
{1002, NULL, "clock_alarm", 0, 0},
{1200, NULL, "clock_set_time", 0, 0},
{1201, NULL, "clock_set_attributes", 0, 0},
{2000, NULL, "memory_object_get_attributes", 0, 0},
{2001, NULL, "memory_object_change_attributes", 0, 0},
{2002, NULL, "memory_object_synchronize_completed", 0, 0},
{2003, NULL, "memory_object_lock_request", 0, 0},
{2004, NULL, "memory_object_destroy", 0, 0},
{2005, NULL, "memory_object_upl_request", 0, 0},
{2006, NULL, "memory_object_super_upl_request", 0, 0},
{2007, NULL, "memory_object_page_op", 0, 0},
{2008, NULL, "memory_object_recover_named", 0, 0},
{2009, NULL, "memory_object_release_name", 0, 0},
{2050, NULL, "upl_abort", 0, 0},
{2051, NULL, "upl_abort_range", 0, 0},
{2052, NULL, "upl_commit", 0, 0},
{2053, NULL, "upl_commit_range", 0, 0},
{2200, NULL, "memory_object_init", 0, 0},
{2201, NULL, "memory_object_terminate", 0, 0},
{2202, NULL, "memory_object_data_request", 0, 0},
{2203, NULL, "memory_object_data_return", 0, 0},
{2204, NULL, "memory_object_data_initialize", 0, 0},
{2205, NULL, "memory_object_data_unlock", 0, 0},
{2206, NULL, "memory_object_synchronize", 0, 0},
{2207, NULL, "memory_object_unmap", 0, 0},
{2250, NULL, "memory_object_create", 0, 0},
{2275, NULL, "default_pager_object_create", 0, 0},
{2276, NULL, "default_pager_info", 0, 0},
{2277, NULL, "default_pager_objects", 0, 0},
{2278, NULL, "default_pager_object_pages", 0, 0},
{2279, NULL, "default_pager_backing_store_create", 0, 0},
{2280, NULL, "default_pager_backing_store_delete", 0, 0},
{2281, NULL, "default_pager_add_segment", 0, 0},
{2282, NULL, "default_pager_backing_store_info", 0, 0},
{2283, NULL, "default_pager_add_file", 0, 0},
{2284, NULL, "default_pager_triggers", 0, 0},
{2295, NULL, "default_pager_space_alert", 0, 0},
{2401, NULL, "exception_raise", 0, 0},
{2402, NULL, "exception_raise_state", 0, 0},
{2403, NULL, "exception_raise_state_identity", 0, 0},
{2450, NULL, "samples", 0, 0},
{2451, NULL, "notices", 0, 0},
{1001, NULL, "unimpl. clock_get_attributes", 0, 0},
{1002, NULL, "unimpl. clock_alarm", 0, 0},
{1200, NULL, "unimpl. clock_set_time", 0, 0},
{1201, NULL, "unimpl. clock_set_attributes", 0, 0},
{2000, NULL, "unimpl. memory_object_get_attributes", 0, 0},
{2001, NULL, "unimpl. memory_object_change_attributes", 0, 0},
{2002, NULL, "unimpl. memory_object_synchronize_completed", 0, 0},
{2003, NULL, "unimpl. memory_object_lock_request", 0, 0},
{2004, NULL, "unimpl. memory_object_destroy", 0, 0},
{2005, NULL, "unimpl. memory_object_upl_request", 0, 0},
{2006, NULL, "unimpl. memory_object_super_upl_request", 0, 0},
{2007, NULL, "unimpl. memory_object_page_op", 0, 0},
{2008, NULL, "unimpl. memory_object_recover_named", 0, 0},
{2009, NULL, "unimpl. memory_object_release_name", 0, 0},
{2050, NULL, "unimpl. upl_abort", 0, 0},
{2051, NULL, "unimpl. upl_abort_range", 0, 0},
{2052, NULL, "unimpl. upl_commit", 0, 0},
{2053, NULL, "unimpl. upl_commit_range", 0, 0},
{2200, NULL, "unimpl. memory_object_init", 0, 0},
{2201, NULL, "unimpl. memory_object_terminate", 0, 0},
{2202, NULL, "unimpl. memory_object_data_request", 0, 0},
{2203, NULL, "unimpl. memory_object_data_return", 0, 0},
{2204, NULL, "unimpl. memory_object_data_initialize", 0, 0},
{2205, NULL, "unimpl. memory_object_data_unlock", 0, 0},
{2206, NULL, "unimpl. memory_object_synchronize", 0, 0},
{2207, NULL, "unimpl. memory_object_unmap", 0, 0},
{2250, NULL, "unimpl. memory_object_create", 0, 0},
{2275, NULL, "unimpl. default_pager_object_create", 0, 0},
{2276, NULL, "unimpl. default_pager_info", 0, 0},
{2277, NULL, "unimpl. default_pager_objects", 0, 0},
{2278, NULL, "unimpl. default_pager_object_pages", 0, 0},
{2279, NULL, "unimpl. default_pager_backing_store_create", 0, 0},
{2280, NULL, "unimpl. default_pager_backing_store_delete", 0, 0},
{2281, NULL, "unimpl. default_pager_add_segment", 0, 0},
{2282, NULL, "unimpl. default_pager_backing_store_info", 0, 0},
{2283, NULL, "unimpl. default_pager_add_file", 0, 0},
{2284, NULL, "unimpl. default_pager_triggers", 0, 0},
{2295, NULL, "unimpl. default_pager_space_alert", 0, 0},
{2401, NULL, "unimpl. exception_raise", 0, 0},
{2402, NULL, "unimpl. exception_raise_state", 0, 0},
{2403, NULL, "unimpl. exception_raise_state_identity", 0, 0},
{2450, NULL, "unimpl. samples", 0, 0},
{2451, NULL, "unimpl. notices", 0, 0},
{2800, mach_io_object_get_class, "io_object_get_class", sizeof(mach_io_object_get_class_request_t), sizeof(mach_io_object_get_class_reply_t)},
{2801, mach_io_object_conforms_to, "io_object_conforms_to", sizeof(mach_io_object_conforms_to_request_t), sizeof(mach_io_object_conforms_to_reply_t)},
{2802, mach_io_iterator_next, "io_iterator_next", sizeof(mach_io_iterator_next_request_t), sizeof(mach_io_iterator_next_reply_t)},
{2803, mach_io_iterator_reset, "io_iterator_reset", sizeof(mach_io_iterator_reset_request_t), sizeof(mach_io_iterator_reset_reply_t)},
{2804, mach_io_service_get_matching_services, "io_service_get_matching_services", sizeof(mach_io_service_get_matching_services_request_t), sizeof(mach_io_service_get_matching_services_reply_t)},
{2805, mach_io_registry_entry_get_property, "io_registry_entry_get_property", sizeof(mach_io_registry_entry_get_property_request_t), sizeof(mach_io_registry_entry_get_property_reply_t)},
{2806, NULL, "io_registry_create_iterator", 0, 0},
{2807, NULL, "io_registry_iterator_enter_entry", 0, 0},
{2808, NULL, "io_registry_iterator_exit_entry", 0, 0},
{2806, NULL, "unimpl. io_registry_create_iterator", 0, 0},
{2807, NULL, "unimpl. io_registry_iterator_enter_entry", 0, 0},
{2808, NULL, "unimpl. io_registry_iterator_exit_entry", 0, 0},
{2809, mach_io_registry_entry_from_path, "io_registry_entry_from_path", sizeof(mach_io_registry_entry_from_path_request_t), sizeof(mach_io_registry_entry_from_path_reply_t)},
{2810, NULL, "io_registry_entry_get_name", 0, 0},
{2810, NULL, "unimpl. io_registry_entry_get_name", 0, 0},
{2811, mach_io_registry_entry_get_properties, "io_registry_entry_get_properties", sizeof(mach_io_registry_entry_get_properties_request_t), sizeof(mach_io_registry_entry_get_properties_reply_t)},
{2812, NULL, "io_registry_entry_get_property_bytes", 0, 0},
{2812, NULL, "unimpl. io_registry_entry_get_property_bytes", 0, 0},
{2813, mach_io_registry_entry_get_child_iterator, "io_registry_entry_get_child_iterator", sizeof(mach_io_registry_entry_get_child_iterator_request_t), sizeof(mach_io_registry_entry_get_child_iterator_reply_t)},
{2814, mach_io_registry_entry_get_parent_iterator, "io_registry_entry_get_parent_iterator", sizeof(mach_io_registry_entry_get_parent_iterator_request_t), sizeof(mach_io_registry_entry_get_parent_iterator_reply_t)},
{2815, mach_io_service_open, "io_service_open", sizeof(mach_io_service_open_request_t), sizeof(mach_io_service_open_reply_t)},
@ -151,207 +151,207 @@ struct mach_service mach_services_table[] = {
{2825, mach_io_connect_method_structi_structo, "io_connect_method_structi_structo", sizeof(mach_io_connect_method_structi_structo_request_t), sizeof(mach_io_connect_method_structi_structo_reply_t)},
{2826, mach_io_registry_entry_get_path, "io_registry_entry_get_path", sizeof(mach_io_registry_entry_get_path_request_t), sizeof(mach_io_registry_entry_get_path_reply_t)},
{2827, mach_io_registry_get_root_entry, "io_registry_get_root_entry", sizeof(mach_io_registry_get_root_entry_request_t), sizeof(mach_io_registry_get_root_entry_reply_t)},
{2828, NULL, "io_registry_entry_set_properties", 0, 0},
{2829, NULL, "io_registry_entry_in_plane", 0, 0},
{2830, NULL, "io_object_get_retain_count", 0, 0},
{2831, NULL, "io_service_get_busy_state", 0, 0},
{2832, NULL, "io_service_wait_quiet", 0, 0},
{2828, NULL, "unimpl. io_registry_entry_set_properties", 0, 0},
{2829, NULL, "unimpl. io_registry_entry_in_plane", 0, 0},
{2830, NULL, "unimpl. io_object_get_retain_count", 0, 0},
{2831, NULL, "unimpl. io_service_get_busy_state", 0, 0},
{2832, NULL, "unimpl. io_service_wait_quiet", 0, 0},
{2833, mach_io_registry_entry_create_iterator, "io_registry_entry_create_iterator", sizeof(mach_io_registry_entry_create_iterator_request_t), sizeof(mach_io_registry_entry_create_iterator_reply_t)},
{2834, NULL, "io_iterator_is_valid", 0, 0},
{2835, NULL, "io_make_matching", 0, 0},
{2836, NULL, "io_catalog_send_data", 0, 0},
{2837, NULL, "io_catalog_terminate", 0, 0},
{2838, NULL, "io_catalog_get_data", 0, 0},
{2839, NULL, "io_catalog_get_gen_count", 0, 0},
{2840, NULL, "io_catalog_module_loaded", 0, 0},
{2841, NULL, "io_catalog_reset", 0, 0},
{2842, NULL, "io_service_request_probe", 0, 0},
{2834, NULL, "unimpl. io_iterator_is_valid", 0, 0},
{2835, NULL, "unimpl. io_make_matching", 0, 0},
{2836, NULL, "unimpl. io_catalog_send_data", 0, 0},
{2837, NULL, "unimpl. io_catalog_terminate", 0, 0},
{2838, NULL, "unimpl. io_catalog_get_data", 0, 0},
{2839, NULL, "unimpl. io_catalog_get_gen_count", 0, 0},
{2840, NULL, "unimpl. io_catalog_module_loaded", 0, 0},
{2841, NULL, "unimpl. io_catalog_reset", 0, 0},
{2842, NULL, "unimpl. io_service_request_probe", 0, 0},
{2843, mach_io_registry_entry_get_name_in_plane, "io_registry_entry_get_name_in_plane", sizeof(mach_io_registry_entry_get_name_in_plane_request_t), sizeof(mach_io_registry_entry_get_name_in_plane_reply_t)},
{2844, NULL, "io_service_match_property_table", 0, 0},
{2845, NULL, "io_async_method_scalari_scalaro", 0, 0},
{2846, NULL, "io_async_method_scalari_structo", 0, 0},
{2847, NULL, "io_async_method_scalari_structi", 0, 0},
{2848, NULL, "io_async_method_structi_structo", 0, 0},
{2849, NULL, "io_service_add_notification", 0, 0},
{2844, NULL, "unimpl. io_service_match_property_table", 0, 0},
{2845, NULL, "unimpl. io_async_method_scalari_scalaro", 0, 0},
{2846, NULL, "unimpl. io_async_method_scalari_structo", 0, 0},
{2847, NULL, "unimpl. io_async_method_scalari_structi", 0, 0},
{2848, NULL, "unimpl. io_async_method_structi_structo", 0, 0},
{2849, NULL, "unimpl. io_service_add_notification", 0, 0},
{2850, mach_io_service_add_interest_notification, "io_service_add_interest_notification", sizeof(mach_io_service_add_interest_notification_request_t), sizeof(mach_io_service_add_interest_notification_reply_t)},
{2851, NULL, "io_service_acknowledge_notification", 0, 0},
{2852, NULL, "io_connect_get_notification_semaphore", 0, 0},
{2853, NULL, "io_connect_unmap_memory", 0, 0},
{2851, NULL, "unimpl. io_service_acknowledge_notification", 0, 0},
{2852, NULL, "unimpl. io_connect_get_notification_semaphore", 0, 0},
{2853, NULL, "unimpl. io_connect_unmap_memory", 0, 0},
{2854, mach_io_registry_entry_get_location_in_plane, "io_registry_entry_get_location_in_plane", sizeof(mach_io_registry_entry_get_location_in_plane_request_t), sizeof(mach_io_registry_entry_get_location_in_plane_reply_t)},
{2855, NULL, "io_registry_entry_get_property_recursively", 0, 0},
{3000, NULL, "processor_start", 0, 0},
{3001, NULL, "processor_exit", 0, 0},
{3002, NULL, "processor_info", 0, 0},
{3003, NULL, "processor_control", 0, 0},
{3004, NULL, "processor_assign", 0, 0},
{3005, NULL, "processor_get_assignment", 0, 0},
{3200, NULL, "port_names", 0, 0},
{2855, NULL, "unimpl. io_registry_entry_get_property_recursively", 0, 0},
{3000, NULL, "unimpl. processor_start", 0, 0},
{3001, NULL, "unimpl. processor_exit", 0, 0},
{3002, NULL, "unimpl. processor_info", 0, 0},
{3003, NULL, "unimpl. processor_control", 0, 0},
{3004, NULL, "unimpl. processor_assign", 0, 0},
{3005, NULL, "unimpl. processor_get_assignment", 0, 0},
{3200, NULL, "unimpl. port_names", 0, 0},
{3201, mach_port_type, "port_type", sizeof(mach_port_type_request_t), sizeof(mach_port_type_reply_t)},
{3202, NULL, "port_rename", 0, 0},
{3203, NULL, "port_allocate_name", 0, 0},
{3202, NULL, "unimpl. port_rename", 0, 0},
{3203, NULL, "unimpl. port_allocate_name", 0, 0},
{3204, mach_port_allocate, "port_allocate", sizeof(mach_port_allocate_request_t), sizeof(mach_port_allocate_reply_t)},
{3205, mach_port_destroy, "port_destroy", sizeof(mach_port_destroy_request_t), sizeof(mach_port_destroy_reply_t)},
{3206, mach_port_deallocate, "port_deallocate", sizeof(mach_port_deallocate_request_t), sizeof(mach_port_deallocate_reply_t)},
{3207, NULL, "port_get_refs", 0, 0},
{3208, NULL, "port_mod_refs", 0, 0},
{3210, NULL, "port_set_mscount", 0, 0},
{3211, NULL, "port_get_set_status", 0, 0},
{3207, NULL, "unimpl. port_get_refs", 0, 0},
{3208, NULL, "unimpl. port_mod_refs", 0, 0},
{3210, NULL, "unimpl. port_set_mscount", 0, 0},
{3211, NULL, "unimpl. port_get_set_status", 0, 0},
{3212, mach_port_move_member, "port_move_member", sizeof(mach_port_move_member_request_t), sizeof(mach_port_move_member_reply_t)},
{3213, mach_port_request_notification, "port_request_notification", sizeof(mach_port_request_notification_request_t), sizeof(mach_port_request_notification_reply_t)},
{3214, mach_port_insert_right, "port_insert_right", sizeof(mach_port_insert_right_request_t), sizeof(mach_port_insert_right_reply_t)},
{3215, NULL, "port_extract_right", 0, 0},
{3216, NULL, "port_set_seqno", 0, 0},
{3215, NULL, "unimpl. port_extract_right", 0, 0},
{3216, NULL, "unimpl. port_set_seqno", 0, 0},
{3217, mach_port_get_attributes, "port_get_attributes", sizeof(mach_port_get_attributes_request_t), sizeof(mach_port_get_attributes_reply_t)},
{3218, mach_port_set_attributes, "port_set_attributes", sizeof(mach_port_set_attributes_request_t), sizeof(mach_port_set_attributes_reply_t)},
{3219, NULL, "port_allocate_qos", 0, 0},
{3220, NULL, "port_allocate_full", 0, 0},
{3221, NULL, "task_set_port_space", 0, 0},
{3222, NULL, "port_get_srights", 0, 0},
{3223, NULL, "port_space_info", 0, 0},
{3224, NULL, "port_dnrequest_info", 0, 0},
{3225, NULL, "port_kernel_object", 0, 0},
{3219, NULL, "unimpl. port_allocate_qos", 0, 0},
{3220, NULL, "unimpl. port_allocate_full", 0, 0},
{3221, NULL, "unimpl. task_set_port_space", 0, 0},
{3222, NULL, "unimpl. port_get_srights", 0, 0},
{3223, NULL, "unimpl. port_space_info", 0, 0},
{3224, NULL, "unimpl. port_dnrequest_info", 0, 0},
{3225, NULL, "unimpl. port_kernel_object", 0, 0},
{3226, mach_port_insert_member, "port_insert_member", sizeof(mach_port_insert_member_request_t), sizeof(mach_port_insert_member_reply_t)},
{3227, NULL, "port_extract_member", 0, 0},
{3400, NULL, "task_create", 0, 0},
{3401, NULL, "task_terminate", 0, 0},
{3227, NULL, "unimpl. port_extract_member", 0, 0},
{3400, NULL, "unimpl. task_create", 0, 0},
{3401, NULL, "unimpl. task_terminate", 0, 0},
{3402, mach_task_threads, "task_threads", sizeof(mach_task_threads_request_t), sizeof(mach_task_threads_reply_t)},
{3403, NULL, "ports_register", 0, 0},
{3403, NULL, "unimpl. ports_register", 0, 0},
{3404, mach_ports_lookup, "ports_lookup", sizeof(mach_ports_lookup_request_t), sizeof(mach_ports_lookup_reply_t)},
{3405, mach_task_info, "task_info", sizeof(mach_task_info_request_t), sizeof(mach_task_info_reply_t)},
{3406, NULL, "task_set_info", 0, 0},
{3406, NULL, "unimpl. task_set_info", 0, 0},
{3407, mach_task_suspend, "task_suspend", sizeof(mach_task_suspend_request_t), sizeof(mach_task_suspend_reply_t)},
{3408, mach_task_resume, "task_resume", sizeof(mach_task_resume_request_t), sizeof(mach_task_resume_reply_t)},
{3409, mach_task_get_special_port, "task_get_special_port", sizeof(mach_task_get_special_port_request_t), sizeof(mach_task_get_special_port_reply_t)},
{3410, mach_task_set_special_port, "task_set_special_port", sizeof(mach_task_set_special_port_request_t), sizeof(mach_task_set_special_port_reply_t)},
{3411, NULL, "thread_create", 0, 0},
{3411, NULL, "unimpl. thread_create", 0, 0},
{3412, mach_thread_create_running, "thread_create_running", sizeof(mach_thread_create_running_request_t), sizeof(mach_thread_create_running_reply_t)},
{3413, mach_task_set_exception_ports, "task_set_exception_ports", sizeof(mach_task_set_exception_ports_request_t), sizeof(mach_task_set_exception_ports_reply_t)},
{3414, mach_task_get_exception_ports, "task_get_exception_ports", sizeof(mach_task_get_exception_ports_request_t), sizeof(mach_task_get_exception_ports_reply_t)},
{3415, NULL, "task_swap_exception_ports", 0, 0},
{3416, NULL, "lock_set_create", 0, 0},
{3417, NULL, "lock_set_destroy", 0, 0},
{3415, NULL, "unimpl. task_swap_exception_ports", 0, 0},
{3416, NULL, "unimpl. lock_set_create", 0, 0},
{3417, NULL, "unimpl. lock_set_destroy", 0, 0},
{3418, mach_semaphore_create, "semaphore_create", sizeof(mach_semaphore_create_request_t), sizeof(mach_semaphore_create_reply_t)},
{3419, mach_semaphore_destroy, "semaphore_destroy", sizeof(mach_semaphore_destroy_request_t), sizeof(mach_semaphore_destroy_reply_t)},
{3420, NULL, "task_policy_set", 0, 0},
{3421, NULL, "task_policy_get", 0, 0},
{3422, NULL, "task_sample", 0, 0},
{3423, NULL, "task_policy", 0, 0},
{3424, NULL, "task_set_emulation", 0, 0},
{3425, NULL, "task_get_emulation_vector", 0, 0},
{3426, NULL, "task_set_emulation_vector", 0, 0},
{3427, NULL, "task_set_ras_pc", 0, 0},
{3428, NULL, "kernel_task_create", 0, 0},
{3429, NULL, "task_assign", 0, 0},
{3430, NULL, "task_assign_default", 0, 0},
{3431, NULL, "task_get_assignment", 0, 0},
{3432, NULL, "task_set_policy", 0, 0},
{3600, NULL, "thread_terminate", 0, 0},
{3601, NULL, "act_get_state", 0, 0},
{3602, NULL, "act_set_state", 0, 0},
{3420, NULL, "unimpl. task_policy_set", 0, 0},
{3421, NULL, "unimpl. task_policy_get", 0, 0},
{3422, NULL, "unimpl. task_sample", 0, 0},
{3423, NULL, "unimpl. task_policy", 0, 0},
{3424, NULL, "unimpl. task_set_emulation", 0, 0},
{3425, NULL, "unimpl. task_get_emulation_vector", 0, 0},
{3426, NULL, "unimpl. task_set_emulation_vector", 0, 0},
{3427, NULL, "unimpl. task_set_ras_pc", 0, 0},
{3428, NULL, "unimpl. kernel_task_create", 0, 0},
{3429, NULL, "unimpl. task_assign", 0, 0},
{3430, NULL, "unimpl. task_assign_default", 0, 0},
{3431, NULL, "unimpl. task_get_assignment", 0, 0},
{3432, NULL, "unimpl. task_set_policy", 0, 0},
{3600, NULL, "unimpl. thread_terminate", 0, 0},
{3601, NULL, "unimpl. act_get_state", 0, 0},
{3602, NULL, "unimpl. act_set_state", 0, 0},
{3603, mach_thread_get_state, "thread_get_state", sizeof(mach_thread_get_state_request_t), sizeof(mach_thread_get_state_reply_t)},
{3604, mach_thread_set_state, "thread_set_state", sizeof(mach_thread_set_state_request_t), sizeof(mach_thread_set_state_reply_t)},
{3605, NULL, "thread_suspend", 0, 0},
{3606, NULL, "thread_resume", 0, 0},
{3607, NULL, "thread_abort", 0, 0},
{3608, NULL, "thread_abort_safely", 0, 0},
{3609, NULL, "thread_depress_abort", 0, 0},
{3610, NULL, "thread_get_special_port", 0, 0},
{3611, NULL, "thread_set_special_port", 0, 0},
{3605, NULL, "unimpl. thread_suspend", 0, 0},
{3606, NULL, "unimpl. thread_resume", 0, 0},
{3607, NULL, "unimpl. thread_abort", 0, 0},
{3608, NULL, "unimpl. thread_abort_safely", 0, 0},
{3609, NULL, "unimpl. thread_depress_abort", 0, 0},
{3610, NULL, "unimpl. thread_get_special_port", 0, 0},
{3611, NULL, "unimpl. thread_set_special_port", 0, 0},
{3612, mach_thread_info, "thread_info", sizeof(mach_thread_info_request_t), sizeof(mach_thread_info_reply_t)},
{3613, NULL, "thread_set_exception_ports", 0, 0},
{3614, NULL, "thread_get_exception_ports", 0, 0},
{3615, NULL, "thread_swap_exception_ports", 0, 0},
{3613, NULL, "unimpl. thread_set_exception_ports", 0, 0},
{3614, NULL, "unimpl. thread_get_exception_ports", 0, 0},
{3615, NULL, "unimpl. thread_swap_exception_ports", 0, 0},
{3616, mach_thread_policy, "thread_policy", sizeof(mach_thread_policy_request_t), sizeof(mach_thread_policy_reply_t)},
{3617, NULL, "thread_policy_set", 0, 0},
{3618, NULL, "thread_policy_get", 0, 0},
{3619, NULL, "thread_sample", 0, 0},
{3620, NULL, "etap_trace_thread", 0, 0},
{3621, NULL, "thread_assign", 0, 0},
{3622, NULL, "thread_assign_default", 0, 0},
{3623, NULL, "thread_get_assignment", 0, 0},
{3624, NULL, "thread_set_policy", 0, 0},
{3617, NULL, "unimpl. thread_policy_set", 0, 0},
{3618, NULL, "unimpl. thread_policy_get", 0, 0},
{3619, NULL, "unimpl. thread_sample", 0, 0},
{3620, NULL, "unimpl. etap_trace_thread", 0, 0},
{3621, NULL, "unimpl. thread_assign", 0, 0},
{3622, NULL, "unimpl. thread_assign_default", 0, 0},
{3623, NULL, "unimpl. thread_get_assignment", 0, 0},
{3624, NULL, "unimpl. thread_set_policy", 0, 0},
{3800, mach_vm_region, "vm_region", sizeof(mach_vm_region_request_t), sizeof(mach_vm_region_reply_t)},
{3801, mach_vm_allocate, "vm_allocate", sizeof(mach_vm_allocate_request_t), sizeof(mach_vm_allocate_reply_t)},
{3802, mach_vm_deallocate, "vm_deallocate", sizeof(mach_vm_deallocate_request_t), sizeof(mach_vm_deallocate_reply_t)},
{3803, mach_vm_protect, "vm_protect", sizeof(mach_vm_protect_request_t), sizeof(mach_vm_protect_reply_t)},
{3804, mach_vm_inherit, "vm_inherit", sizeof(mach_vm_inherit_request_t), sizeof(mach_vm_inherit_reply_t)},
{3805, NULL, "vm_read", 0, 0},
{3806, NULL, "vm_read_list", 0, 0},
{3807, NULL, "vm_write", 0, 0},
{3805, NULL, "unimpl. vm_read", 0, 0},
{3806, NULL, "unimpl. vm_read_list", 0, 0},
{3807, NULL, "unimpl. vm_write", 0, 0},
{3808, mach_vm_copy, "vm_copy", sizeof(mach_vm_copy_request_t), sizeof(mach_vm_copy_reply_t)},
{3809, NULL, "vm_read_overwrite", 0, 0},
{3809, NULL, "unimpl. vm_read_overwrite", 0, 0},
{3810, mach_vm_msync, "vm_msync", sizeof(mach_vm_msync_request_t), sizeof(mach_vm_msync_reply_t)},
{3811, NULL, "vm_behavior_set", 0, 0},
{3811, NULL, "unimpl. vm_behavior_set", 0, 0},
{3812, mach_vm_map, "vm_map", sizeof(mach_vm_map_request_t), sizeof(mach_vm_map_reply_t)},
{3813, NULL, "vm_machine_attribute", 0, 0},
{3814, NULL, "vm_remap", 0, 0},
{3815, NULL, "task_wire", 0, 0},
{3816, NULL, "make_memory_entry", 0, 0},
{3817, NULL, "vm_map_page_query", 0, 0},
{3818, NULL, "vm_region_info", 0, 0},
{3819, NULL, "vm_mapped_pages_info", 0, 0},
{3820, NULL, "vm_region_object_create", 0, 0},
{3821, NULL, "vm_region_recurse", 0, 0},
{3822, NULL, "vm_region_recurse_64", 0, 0},
{3823, NULL, "vm_region_info_64", 0, 0},
{3813, NULL, "unimpl. vm_machine_attribute", 0, 0},
{3814, NULL, "unimpl. vm_remap", 0, 0},
{3815, NULL, "unimpl. task_wire", 0, 0},
{3816, NULL, "unimpl. make_memory_entry", 0, 0},
{3817, NULL, "unimpl. vm_map_page_query", 0, 0},
{3818, NULL, "unimpl. vm_region_info", 0, 0},
{3819, NULL, "unimpl. vm_mapped_pages_info", 0, 0},
{3820, NULL, "unimpl. vm_region_object_create", 0, 0},
{3821, NULL, "unimpl. vm_region_recurse", 0, 0},
{3822, NULL, "unimpl. vm_region_recurse_64", 0, 0},
{3823, NULL, "unimpl. vm_region_info_64", 0, 0},
{3824, mach_vm_region_64, "vm_region_64", sizeof(mach_vm_region_64_request_t), sizeof(mach_vm_region_64_reply_t)},
{3825, mach_make_memory_entry_64, "make_memory_entry_64", sizeof(mach_make_memory_entry_64_request_t), sizeof(mach_make_memory_entry_64_reply_t)},
{3826, NULL, "vm_map_64", 0, 0},
{3827, NULL, "vm_map_get_upl", 0, 0},
{3828, NULL, "vm_upl_map", 0, 0},
{3829, NULL, "vm_upl_unmap", 0, 0},
{4000, NULL, "processor_set_statistics", 0, 0},
{4001, NULL, "processor_set_destroy", 0, 0},
{4002, NULL, "processor_set_max_priority", 0, 0},
{4003, NULL, "processor_set_policy_enable", 0, 0},
{4004, NULL, "processor_set_policy_disable", 0, 0},
{4005, NULL, "processor_set_tasks", 0, 0},
{4006, NULL, "processor_set_threads", 0, 0},
{4007, NULL, "processor_set_policy_control", 0, 0},
{4008, NULL, "processor_set_stack_usage", 0, 0},
{4009, NULL, "processor_set_info", 0, 0},
{5000, NULL, "ledger_create", 0, 0},
{5001, NULL, "ledger_terminate", 0, 0},
{5002, NULL, "ledger_transfer", 0, 0},
{5003, NULL, "ledger_read", 0, 0},
{6000, NULL, "und_execute_rpc", 0, 0},
{6001, NULL, "und_display_notice_from_bundle_rpc", 0, 0},
{6002, NULL, "und_display_alert_from_bundle_rpc", 0, 0},
{6003, NULL, "und_display_custom_from_bundle_rpc", 0, 0},
{6004, NULL, "und_display_custom_from_dictionary_rpc", 0, 0},
{6005, NULL, "und_cancel_notification_rpc", 0, 0},
{6006, NULL, "und_display_notice_simple_rpc", 0, 0},
{6007, NULL, "und_display_alert_simple_rpc", 0, 0},
{6200, NULL, "und_alert_completed_with_result_rpc", 0, 0},
{6201, NULL, "und_notification_created_rpc(", 0, 0},
{555001, NULL, "task_set_child_node", 0, 0},
{555002, NULL, "norma_node_self", 0, 0},
{555005, NULL, "norma_task_clone", 0, 0},
{555006, NULL, "norma_task_create", 0, 0},
{555007, NULL, "norma_get_special_port", 0, 0},
{555008, NULL, "norma_set_special_port", 0, 0},
{555009, NULL, "norma_task_teleport", 0, 0},
{555012, NULL, "norma_port_location_hint", 0, 0},
{617000, NULL, "lock_acquire", 0, 0},
{617001, NULL, "lock_release", 0, 0},
{617002, NULL, "lock_try", 0, 0},
{617003, NULL, "lock_make_stable", 0, 0},
{617004, NULL, "lock_handoff", 0, 0},
{617005, NULL, "lock_handoff_accept", 0, 0},
{617005, NULL, "lock_set_create", 0, 0},
{617006, NULL, "lock_set_destroy", 0, 0},
{617007, NULL, "lock_acquire", 0, 0},
{617008, NULL, "lock_release", 0, 0},
{617009, NULL, "lock_try", 0, 0},
{617010, NULL, "lock_make_stable", 0, 0},
{617011, NULL, "lock_handoff", 0, 0},
{617012, NULL, "lock_handoff_accept", 0, 0},
{617200, NULL, "semaphore_signal", 0, 0},
{617201, NULL, "semaphore_signal_all", 0, 0},
{617202, NULL, "semaphore_wait", 0, 0},
{617203, NULL, "semaphore_signal_thread", 0, 0},
{617204, NULL, "semaphore_timedwait", 0, 0},
{617205, NULL, "semaphore_wait_signal", 0, 0},
{617206, NULL, "semaphore_timedwait_signal", 0, 0},
{3826, NULL, "unimpl. vm_map_64", 0, 0},
{3827, NULL, "unimpl. vm_map_get_upl", 0, 0},
{3828, NULL, "unimpl. vm_upl_map", 0, 0},
{3829, NULL, "unimpl. vm_upl_unmap", 0, 0},
{4000, NULL, "unimpl. processor_set_statistics", 0, 0},
{4001, NULL, "unimpl. processor_set_destroy", 0, 0},
{4002, NULL, "unimpl. processor_set_max_priority", 0, 0},
{4003, NULL, "unimpl. processor_set_policy_enable", 0, 0},
{4004, NULL, "unimpl. processor_set_policy_disable", 0, 0},
{4005, NULL, "unimpl. processor_set_tasks", 0, 0},
{4006, NULL, "unimpl. processor_set_threads", 0, 0},
{4007, NULL, "unimpl. processor_set_policy_control", 0, 0},
{4008, NULL, "unimpl. processor_set_stack_usage", 0, 0},
{4009, NULL, "unimpl. processor_set_info", 0, 0},
{5000, NULL, "unimpl. ledger_create", 0, 0},
{5001, NULL, "unimpl. ledger_terminate", 0, 0},
{5002, NULL, "unimpl. ledger_transfer", 0, 0},
{5003, NULL, "unimpl. ledger_read", 0, 0},
{6000, NULL, "unimpl. und_execute_rpc", 0, 0},
{6001, NULL, "unimpl. und_display_notice_from_bundle_rpc", 0, 0},
{6002, NULL, "unimpl. und_display_alert_from_bundle_rpc", 0, 0},
{6003, NULL, "unimpl. und_display_custom_from_bundle_rpc", 0, 0},
{6004, NULL, "unimpl. und_display_custom_from_dictionary_rpc", 0, 0},
{6005, NULL, "unimpl. und_cancel_notification_rpc", 0, 0},
{6006, NULL, "unimpl. und_display_notice_simple_rpc", 0, 0},
{6007, NULL, "unimpl. und_display_alert_simple_rpc", 0, 0},
{6200, NULL, "unimpl. und_alert_completed_with_result_rpc", 0, 0},
{6201, NULL, "unimpl. und_notification_created_rpc(", 0, 0},
{555001, NULL, "unimpl. task_set_child_node", 0, 0},
{555002, NULL, "unimpl. norma_node_self", 0, 0},
{555005, NULL, "unimpl. norma_task_clone", 0, 0},
{555006, NULL, "unimpl. norma_task_create", 0, 0},
{555007, NULL, "unimpl. norma_get_special_port", 0, 0},
{555008, NULL, "unimpl. norma_set_special_port", 0, 0},
{555009, NULL, "unimpl. norma_task_teleport", 0, 0},
{555012, NULL, "unimpl. norma_port_location_hint", 0, 0},
{617000, NULL, "unimpl. lock_acquire", 0, 0},
{617001, NULL, "unimpl. lock_release", 0, 0},
{617002, NULL, "unimpl. lock_try", 0, 0},
{617003, NULL, "unimpl. lock_make_stable", 0, 0},
{617004, NULL, "unimpl. lock_handoff", 0, 0},
{617005, NULL, "unimpl. lock_handoff_accept", 0, 0},
{617005, NULL, "unimpl. lock_set_create", 0, 0},
{617006, NULL, "unimpl. lock_set_destroy", 0, 0},
{617007, NULL, "unimpl. lock_acquire", 0, 0},
{617008, NULL, "unimpl. lock_release", 0, 0},
{617009, NULL, "unimpl. lock_try", 0, 0},
{617010, NULL, "unimpl. lock_make_stable", 0, 0},
{617011, NULL, "unimpl. lock_handoff", 0, 0},
{617012, NULL, "unimpl. lock_handoff_accept", 0, 0},
{617200, NULL, "unimpl. semaphore_signal", 0, 0},
{617201, NULL, "unimpl. semaphore_signal_all", 0, 0},
{617202, NULL, "unimpl. semaphore_wait", 0, 0},
{617203, NULL, "unimpl. semaphore_signal_thread", 0, 0},
{617204, NULL, "unimpl. semaphore_timedwait", 0, 0},
{617205, NULL, "unimpl. semaphore_wait_signal", 0, 0},
{617206, NULL, "unimpl. semaphore_timedwait_signal", 0, 0},
{0, NULL, NULL, 0, 0}
};

View File

@ -1,14 +1,15 @@
/* $NetBSD: mach_services.h,v 1.3 2003/11/15 17:45:34 manu Exp $ */
/* $NetBSD: mach_services.h,v 1.4 2003/11/15 22:55:35 manu Exp $ */
/*
* Mach services prototypes.
*
* DO NOT EDIT -- this file is automatically generated.
* created from ;
* DO NOT EDIT -- this file is automatically generated.
* created from $NetBSD: mach_services.h,v 1.4 2003/11/15 22:55:35 manu Exp $
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mach_services.h,v 1.3 2003/11/15 17:45:34 manu Exp $");
__KERNEL_RCSID(0, "$NetBSD: mach_services.h,v 1.4 2003/11/15 22:55:35 manu Exp $");
#include <compat/mach/mach_types.h>
#include <compat/mach/mach_message.h>

View File

@ -1,3 +1,4 @@
$NetBSD: mach_services.master,v 1.3 2003/11/15 22:55:35 manu Exp $
;
; Mach services list.
;

View File

@ -0,0 +1,347 @@
/* $NetBSD: mach_services_names.c,v 1.1 2003/11/15 22:55:35 manu Exp $ */
/*
* Mach services names. This file is not built
* by the kernel, it is included by kdump sources.
*
* created from $NetBSD: mach_services_names.c,v 1.1 2003/11/15 22:55:35 manu Exp $
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mach_services_names.c,v 1.1 2003/11/15 22:55:35 manu Exp $");
struct mach_service_name {
int srv_id;
const char *srv_name;
};
struct mach_service_name mach_services_names[] = {
{64, "obsolete notify_first"},
{65, "unimpl. notify_port_deleted"},
{66, "obsolete notify_msg_accepted"},
{67, "obsolete notify_ownership_rights"},
{68, "obsolete notify_receive_rights"},
{69, "unimpl. notify_port_destroyed"},
{70, "unimpl. notify_port_no_senders"},
{71, "unimpl. notify_port_send_once"},
{72, "unimpl. notify_port_dead_name"},
{200, "host_info"},
{201, "unimpl. host_kernel_version"},
{202, "host_page_size"},
{203, "unimpl. memory_object_memory_entry"},
{204, "unimpl. host_processor_info"},
{205, "host_get_io_master"},
{206, "host_get_clock_service"},
{207, "unimpl. kmod_get_info"},
{208, "unimpl. host_zone_info"},
{209, "unimpl. host_virtual_physical_table_info"},
{210, "unimpl. host_ipc_hash_info"},
{211, "unimpl. enable_bluebox"},
{212, "unimpl. disable_bluebox"},
{213, "unimpl. processor_set_default"},
{214, "unimpl. processor_set_create"},
{215, "unimpl. memory_object_memory_entry_64"},
{216, "unimpl. host_statistics"},
{400, "unimpl. host_get_boot_info"},
{401, "unimpl. host_reboot"},
{402, "unimpl. host_priv_statistics"},
{403, "unimpl. host_default_memory_manager"},
{404, "bootstrap_look_up"},
{405, "unimpl. thread_wire"},
{406, "unimpl. vm_allocate_cpm"},
{407, "unimpl. host_processors"},
{408, "unimpl. host_get_clock_control"},
{409, "unimpl. kmod_create"},
{410, "unimpl. kmod_destroy"},
{411, "unimpl. kmod_control"},
{412, "unimpl. host_get_special_port"},
{413, "unimpl. host_set_special_port"},
{414, "unimpl. host_set_exception_ports"},
{415, "unimpl. host_get_exception_ports"},
{416, "unimpl. host_swap_exception_ports"},
{417, "unimpl. host_load_symbol_table"},
{418, "unimpl. task_swappable"},
{419, "unimpl. host_processor_sets"},
{420, "unimpl. host_processor_set_priv"},
{421, "unimpl. set_dp_control_port"},
{422, "unimpl. get_dp_control_port"},
{423, "unimpl. host_set_UNDServer"},
{424, "unimpl. host_get_UNDServer"},
{600, "unimpl. host_security_create_task_token"},
{601, "unimpl. host_security_set_task_token"},
{1000, "clock_get_time"},
{1001, "unimpl. clock_get_attributes"},
{1002, "unimpl. clock_alarm"},
{1200, "unimpl. clock_set_time"},
{1201, "unimpl. clock_set_attributes"},
{2000, "unimpl. memory_object_get_attributes"},
{2001, "unimpl. memory_object_change_attributes"},
{2002, "unimpl. memory_object_synchronize_completed"},
{2003, "unimpl. memory_object_lock_request"},
{2004, "unimpl. memory_object_destroy"},
{2005, "unimpl. memory_object_upl_request"},
{2006, "unimpl. memory_object_super_upl_request"},
{2007, "unimpl. memory_object_page_op"},
{2008, "unimpl. memory_object_recover_named"},
{2009, "unimpl. memory_object_release_name"},
{2050, "unimpl. upl_abort"},
{2051, "unimpl. upl_abort_range"},
{2052, "unimpl. upl_commit"},
{2053, "unimpl. upl_commit_range"},
{2200, "unimpl. memory_object_init"},
{2201, "unimpl. memory_object_terminate"},
{2202, "unimpl. memory_object_data_request"},
{2203, "unimpl. memory_object_data_return"},
{2204, "unimpl. memory_object_data_initialize"},
{2205, "unimpl. memory_object_data_unlock"},
{2206, "unimpl. memory_object_synchronize"},
{2207, "unimpl. memory_object_unmap"},
{2250, "unimpl. memory_object_create"},
{2275, "unimpl. default_pager_object_create"},
{2276, "unimpl. default_pager_info"},
{2277, "unimpl. default_pager_objects"},
{2278, "unimpl. default_pager_object_pages"},
{2279, "unimpl. default_pager_backing_store_create"},
{2280, "unimpl. default_pager_backing_store_delete"},
{2281, "unimpl. default_pager_add_segment"},
{2282, "unimpl. default_pager_backing_store_info"},
{2283, "unimpl. default_pager_add_file"},
{2284, "unimpl. default_pager_triggers"},
{2295, "unimpl. default_pager_space_alert"},
{2401, "unimpl. exception_raise"},
{2402, "unimpl. exception_raise_state"},
{2403, "unimpl. exception_raise_state_identity"},
{2450, "unimpl. samples"},
{2451, "unimpl. notices"},
{2800, "io_object_get_class"},
{2801, "io_object_conforms_to"},
{2802, "io_iterator_next"},
{2803, "io_iterator_reset"},
{2804, "io_service_get_matching_services"},
{2805, "io_registry_entry_get_property"},
{2806, "unimpl. io_registry_create_iterator"},
{2807, "unimpl. io_registry_iterator_enter_entry"},
{2808, "unimpl. io_registry_iterator_exit_entry"},
{2809, "io_registry_entry_from_path"},
{2810, "unimpl. io_registry_entry_get_name"},
{2811, "io_registry_entry_get_properties"},
{2812, "unimpl. io_registry_entry_get_property_bytes"},
{2813, "io_registry_entry_get_child_iterator"},
{2814, "io_registry_entry_get_parent_iterator"},
{2815, "io_service_open"},
{2816, "io_service_close"},
{2817, "io_connect_get_service"},
{2818, "io_connect_set_notification_port"},
{2819, "io_connect_map_memory"},
{2820, "io_connect_add_client"},
{2821, "io_connect_set_properties"},
{2822, "io_connect_method_scalari_scalaro"},
{2823, "io_connect_method_scalari_structo"},
{2824, "io_connect_method_scalari_structi"},
{2825, "io_connect_method_structi_structo"},
{2826, "io_registry_entry_get_path"},
{2827, "io_registry_get_root_entry"},
{2828, "unimpl. io_registry_entry_set_properties"},
{2829, "unimpl. io_registry_entry_in_plane"},
{2830, "unimpl. io_object_get_retain_count"},
{2831, "unimpl. io_service_get_busy_state"},
{2832, "unimpl. io_service_wait_quiet"},
{2833, "io_registry_entry_create_iterator"},
{2834, "unimpl. io_iterator_is_valid"},
{2835, "unimpl. io_make_matching"},
{2836, "unimpl. io_catalog_send_data"},
{2837, "unimpl. io_catalog_terminate"},
{2838, "unimpl. io_catalog_get_data"},
{2839, "unimpl. io_catalog_get_gen_count"},
{2840, "unimpl. io_catalog_module_loaded"},
{2841, "unimpl. io_catalog_reset"},
{2842, "unimpl. io_service_request_probe"},
{2843, "io_registry_entry_get_name_in_plane"},
{2844, "unimpl. io_service_match_property_table"},
{2845, "unimpl. io_async_method_scalari_scalaro"},
{2846, "unimpl. io_async_method_scalari_structo"},
{2847, "unimpl. io_async_method_scalari_structi"},
{2848, "unimpl. io_async_method_structi_structo"},
{2849, "unimpl. io_service_add_notification"},
{2850, "io_service_add_interest_notification"},
{2851, "unimpl. io_service_acknowledge_notification"},
{2852, "unimpl. io_connect_get_notification_semaphore"},
{2853, "unimpl. io_connect_unmap_memory"},
{2854, "io_registry_entry_get_location_in_plane"},
{2855, "unimpl. io_registry_entry_get_property_recursively"},
{3000, "unimpl. processor_start"},
{3001, "unimpl. processor_exit"},
{3002, "unimpl. processor_info"},
{3003, "unimpl. processor_control"},
{3004, "unimpl. processor_assign"},
{3005, "unimpl. processor_get_assignment"},
{3200, "unimpl. port_names"},
{3201, "port_type"},
{3202, "unimpl. port_rename"},
{3203, "unimpl. port_allocate_name"},
{3204, "port_allocate"},
{3205, "port_destroy"},
{3206, "port_deallocate"},
{3207, "unimpl. port_get_refs"},
{3208, "unimpl. port_mod_refs"},
{3210, "unimpl. port_set_mscount"},
{3211, "unimpl. port_get_set_status"},
{3212, "port_move_member"},
{3213, "port_request_notification"},
{3214, "port_insert_right"},
{3215, "unimpl. port_extract_right"},
{3216, "unimpl. port_set_seqno"},
{3217, "port_get_attributes"},
{3218, "port_set_attributes"},
{3219, "unimpl. port_allocate_qos"},
{3220, "unimpl. port_allocate_full"},
{3221, "unimpl. task_set_port_space"},
{3222, "unimpl. port_get_srights"},
{3223, "unimpl. port_space_info"},
{3224, "unimpl. port_dnrequest_info"},
{3225, "unimpl. port_kernel_object"},
{3226, "port_insert_member"},
{3227, "unimpl. port_extract_member"},
{3400, "unimpl. task_create"},
{3401, "unimpl. task_terminate"},
{3402, "task_threads"},
{3403, "unimpl. ports_register"},
{3404, "ports_lookup"},
{3405, "task_info"},
{3406, "unimpl. task_set_info"},
{3407, "task_suspend"},
{3408, "task_resume"},
{3409, "task_get_special_port"},
{3410, "task_set_special_port"},
{3411, "unimpl. thread_create"},
{3412, "thread_create_running"},
{3413, "task_set_exception_ports"},
{3414, "task_get_exception_ports"},
{3415, "unimpl. task_swap_exception_ports"},
{3416, "unimpl. lock_set_create"},
{3417, "unimpl. lock_set_destroy"},
{3418, "semaphore_create"},
{3419, "semaphore_destroy"},
{3420, "unimpl. task_policy_set"},
{3421, "unimpl. task_policy_get"},
{3422, "unimpl. task_sample"},
{3423, "unimpl. task_policy"},
{3424, "unimpl. task_set_emulation"},
{3425, "unimpl. task_get_emulation_vector"},
{3426, "unimpl. task_set_emulation_vector"},
{3427, "unimpl. task_set_ras_pc"},
{3428, "unimpl. kernel_task_create"},
{3429, "unimpl. task_assign"},
{3430, "unimpl. task_assign_default"},
{3431, "unimpl. task_get_assignment"},
{3432, "unimpl. task_set_policy"},
{3600, "unimpl. thread_terminate"},
{3601, "unimpl. act_get_state"},
{3602, "unimpl. act_set_state"},
{3603, "thread_get_state"},
{3604, "thread_set_state"},
{3605, "unimpl. thread_suspend"},
{3606, "unimpl. thread_resume"},
{3607, "unimpl. thread_abort"},
{3608, "unimpl. thread_abort_safely"},
{3609, "unimpl. thread_depress_abort"},
{3610, "unimpl. thread_get_special_port"},
{3611, "unimpl. thread_set_special_port"},
{3612, "thread_info"},
{3613, "unimpl. thread_set_exception_ports"},
{3614, "unimpl. thread_get_exception_ports"},
{3615, "unimpl. thread_swap_exception_ports"},
{3616, "thread_policy"},
{3617, "unimpl. thread_policy_set"},
{3618, "unimpl. thread_policy_get"},
{3619, "unimpl. thread_sample"},
{3620, "unimpl. etap_trace_thread"},
{3621, "unimpl. thread_assign"},
{3622, "unimpl. thread_assign_default"},
{3623, "unimpl. thread_get_assignment"},
{3624, "unimpl. thread_set_policy"},
{3800, "vm_region"},
{3801, "vm_allocate"},
{3802, "vm_deallocate"},
{3803, "vm_protect"},
{3804, "vm_inherit"},
{3805, "unimpl. vm_read"},
{3806, "unimpl. vm_read_list"},
{3807, "unimpl. vm_write"},
{3808, "vm_copy"},
{3809, "unimpl. vm_read_overwrite"},
{3810, "vm_msync"},
{3811, "unimpl. vm_behavior_set"},
{3812, "vm_map"},
{3813, "unimpl. vm_machine_attribute"},
{3814, "unimpl. vm_remap"},
{3815, "unimpl. task_wire"},
{3816, "unimpl. make_memory_entry"},
{3817, "unimpl. vm_map_page_query"},
{3818, "unimpl. vm_region_info"},
{3819, "unimpl. vm_mapped_pages_info"},
{3820, "unimpl. vm_region_object_create"},
{3821, "unimpl. vm_region_recurse"},
{3822, "unimpl. vm_region_recurse_64"},
{3823, "unimpl. vm_region_info_64"},
{3824, "vm_region_64"},
{3825, "make_memory_entry_64"},
{3826, "unimpl. vm_map_64"},
{3827, "unimpl. vm_map_get_upl"},
{3828, "unimpl. vm_upl_map"},
{3829, "unimpl. vm_upl_unmap"},
{4000, "unimpl. processor_set_statistics"},
{4001, "unimpl. processor_set_destroy"},
{4002, "unimpl. processor_set_max_priority"},
{4003, "unimpl. processor_set_policy_enable"},
{4004, "unimpl. processor_set_policy_disable"},
{4005, "unimpl. processor_set_tasks"},
{4006, "unimpl. processor_set_threads"},
{4007, "unimpl. processor_set_policy_control"},
{4008, "unimpl. processor_set_stack_usage"},
{4009, "unimpl. processor_set_info"},
{5000, "unimpl. ledger_create"},
{5001, "unimpl. ledger_terminate"},
{5002, "unimpl. ledger_transfer"},
{5003, "unimpl. ledger_read"},
{6000, "unimpl. und_execute_rpc"},
{6001, "unimpl. und_display_notice_from_bundle_rpc"},
{6002, "unimpl. und_display_alert_from_bundle_rpc"},
{6003, "unimpl. und_display_custom_from_bundle_rpc"},
{6004, "unimpl. und_display_custom_from_dictionary_rpc"},
{6005, "unimpl. und_cancel_notification_rpc"},
{6006, "unimpl. und_display_notice_simple_rpc"},
{6007, "unimpl. und_display_alert_simple_rpc"},
{6200, "unimpl. und_alert_completed_with_result_rpc"},
{6201, "unimpl. und_notification_created_rpc("},
{555001, "unimpl. task_set_child_node"},
{555002, "unimpl. norma_node_self"},
{555005, "unimpl. norma_task_clone"},
{555006, "unimpl. norma_task_create"},
{555007, "unimpl. norma_get_special_port"},
{555008, "unimpl. norma_set_special_port"},
{555009, "unimpl. norma_task_teleport"},
{555012, "unimpl. norma_port_location_hint"},
{617000, "unimpl. lock_acquire"},
{617001, "unimpl. lock_release"},
{617002, "unimpl. lock_try"},
{617003, "unimpl. lock_make_stable"},
{617004, "unimpl. lock_handoff"},
{617005, "unimpl. lock_handoff_accept"},
{617005, "unimpl. lock_set_create"},
{617006, "unimpl. lock_set_destroy"},
{617007, "unimpl. lock_acquire"},
{617008, "unimpl. lock_release"},
{617009, "unimpl. lock_try"},
{617010, "unimpl. lock_make_stable"},
{617011, "unimpl. lock_handoff"},
{617012, "unimpl. lock_handoff_accept"},
{617200, "unimpl. semaphore_signal"},
{617201, "unimpl. semaphore_signal_all"},
{617202, "unimpl. semaphore_wait"},
{617203, "unimpl. semaphore_signal_thread"},
{617204, "unimpl. semaphore_timedwait"},
{617205, "unimpl. semaphore_wait_signal"},
{617206, "unimpl. semaphore_timedwait_signal"},
{0, NULL}
};

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $NetBSD: makemachservices.sh,v 1.2 2003/11/15 17:44:39 manu Exp $
# $NetBSD: makemachservices.sh,v 1.3 2003/11/15 22:55:35 manu Exp $
#
# Copyright (c) 2003 The NetBSD Foundation, Inc.
# All rights reserved.
@ -35,6 +35,7 @@
master="mach_services.master"
table="mach_services.c"
headers="mach_services.h"
names="mach_services_names.c"
sed -e '
:join
@ -49,6 +50,7 @@ BEGIN{
intable = 0;
table = "'$table'";
headers = "'$headers'";
names = "'$names'";
printf("/* \$NetBSD\$ *\/\n\n") > table;
printf("/*\n * Mach services table.\n *\n") > table;
@ -59,6 +61,13 @@ BEGIN{
printf("/*\n * Mach services prototypes.\n *\n") > headers;
printf(" * DO NOT EDIT -- this file is automatically generated.\n") > \
headers;
printf("/* \$NetBSD\$ *\/\n\n") > names;
printf("/*\n * Mach services names. This file is not built\n") > names;
printf(" * by the kernel, it is included by kdump sources.\n *\n") > \
names;
printf(" * DO NOT EDIT -- this file is automatically generated.\n") > \
headers;
}
(NR == 1) {
printf(" * created from %s\n */\n\n", $0) > table;
@ -70,6 +79,14 @@ BEGIN{
"\"\$NetBSD\$\");\n\n") > headers;
printf("#include <compat/mach/mach_types.h>\n") > headers;
printf("#include <compat/mach/mach_message.h>\n") > headers;
printf(" * created from %s\n */\n\n", $0) > names;
printf("#include \<sys/cdefs.h\>\n__KERNEL_RCSID(0, " \
"\"\$NetBSD\$\");\n\n") > names;
printf("struct mach_service_name {\n") > names;
printf(" int srv_id;\n") > names;
printf(" const char *srv_name;\n") > names;
printf("};\n\n") > names;
next;
}
(NF == 0 || $1 ~ /^;/) {
@ -79,6 +96,7 @@ BEGIN{
intable = 1;
printf("\nstruct mach_service mach_services_table[] = {\n") > table;
printf("\n") > headers;
printf("struct mach_service_name mach_services_names[] = {\n") > names;
next;
}
(!intable) {
@ -90,17 +108,23 @@ BEGIN{
"sizeof(mach_%s_request_t), sizeof(mach_%s_reply_t)},\n", \
$1, $3, $3, $3, $3) > table;
printf("int mach_%s(struct mach_trap_args *);\n", $3) > headers;
printf(" {%d, \"%s\"},\n", $1, $3) > names;
}
(intable && $2 == "UNIMPL") {
printf(" {%d, NULL, \"%s\", 0, 0},\n", \
printf(" {%d, NULL, \"unimpl. %s\", 0, 0},\n", \
$1, $3, $3, $3, $3) > table;
printf(" {%d, \"unimpl. %s\"},\n", $1, $3) > names;
}
(intable && $2 == "OBSOL") {
printf(" {%d, NULL, \"obsolete %s\", 0, 0},\n", \
$1, $3, $3, $3, $3) > table;
printf(" {%d, \"obsolete %s\"},\n", $1, $3) > names;
}
END {
printf(" {0, NULL, NULL, 0, 0}\n") > table;
printf("};\n") > table;
printf(" {0, NULL}\n") > names;
printf("};\n") > names;
}
'