ipc_host.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * Mach Operating System
  3. * Copyright (c) 1991,1990,1989,1988 Carnegie Mellon University.
  4. * Copyright (c) 1993,1994 The University of Utah and
  5. * the Computer Systems Laboratory (CSL).
  6. * All rights reserved.
  7. *
  8. * Permission to use, copy, modify and distribute this software and its
  9. * documentation is hereby granted, provided that both the copyright
  10. * notice and this permission notice appear in all copies of the
  11. * software, derivative works or modified versions, and any portions
  12. * thereof, and that both notices appear in supporting documentation.
  13. *
  14. * CARNEGIE MELLON, THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF
  15. * THIS SOFTWARE IN ITS "AS IS" CONDITION, AND DISCLAIM ANY LIABILITY
  16. * OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF
  17. * THIS SOFTWARE.
  18. *
  19. * Carnegie Mellon requests users of this software to return to
  20. *
  21. * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
  22. * School of Computer Science
  23. * Carnegie Mellon University
  24. * Pittsburgh PA 15213-3890
  25. *
  26. * any improvements or extensions that they make and grant Carnegie Mellon
  27. * the rights to redistribute these changes.
  28. */
  29. #ifndef _KERN_IPC_HOST_H_
  30. #define _KERN_IPC_HOST_H_
  31. #include <mach/port.h>
  32. #include <kern/processor.h>
  33. extern void ipc_host_init(void);
  34. extern void ipc_processor_init(processor_t);
  35. extern void ipc_pset_init(processor_set_t);
  36. extern void ipc_pset_enable(processor_set_t);
  37. extern void ipc_pset_disable(processor_set_t);
  38. extern void ipc_pset_terminate(processor_set_t);
  39. extern struct host *
  40. convert_port_to_host(struct ipc_port *);
  41. extern struct ipc_port *
  42. convert_host_to_port(struct host *);
  43. extern struct host *
  44. convert_port_to_host_priv(struct ipc_port *);
  45. extern processor_t
  46. convert_port_to_processor(struct ipc_port *);
  47. extern struct ipc_port *
  48. convert_processor_to_port(processor_t);
  49. extern processor_set_t
  50. convert_port_to_pset(struct ipc_port *);
  51. extern struct ipc_port *
  52. convert_pset_to_port(processor_set_t);
  53. extern processor_set_t
  54. convert_port_to_pset_name(struct ipc_port *);
  55. extern struct ipc_port *
  56. convert_pset_name_to_port(processor_set_t);
  57. #endif /* _KERN_IPC_HOST_H_ */