|
|
1.1.1.2 root 1: /*
1.1 root 2: * Mach Operating System
3: * Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University
4: * All Rights Reserved.
1.1.1.2 root 5: *
1.1 root 6: * Permission to use, copy, modify and distribute this software and its
7: * documentation is hereby granted, provided that both the copyright
8: * notice and this permission notice appear in all copies of the
9: * software, derivative works or modified versions, and any portions
10: * thereof, and that both notices appear in supporting documentation.
1.1.1.2 root 11: *
1.1 root 12: * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13: * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14: * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
1.1.1.2 root 15: *
1.1 root 16: * Carnegie Mellon requests users of this software to return to
1.1.1.2 root 17: *
1.1 root 18: * Software Distribution Coordinator or [email protected]
19: * School of Computer Science
20: * Carnegie Mellon University
21: * Pittsburgh PA 15213-3890
1.1.1.2 root 22: *
1.1 root 23: * any improvements or extensions that they make and grant Carnegie Mellon
24: * the rights to redistribute these changes.
25: */
26:
27: #ifndef _KERN_IPC_TT_H_
28: #define _KERN_IPC_TT_H_
29:
30: #include <mach/boolean.h>
1.1.1.3 ! root 31: #include <mach/mach_types.h>
1.1 root 32: #include <mach/port.h>
33:
1.1.1.3 ! root 34: extern void ipc_task_init(task_t, task_t);
! 35: extern void ipc_task_enable(task_t);
! 36: extern void ipc_task_disable(task_t);
! 37: extern void ipc_task_terminate(task_t);
1.1 root 38:
1.1.1.3 ! root 39: extern void ipc_thread_init(thread_t);
! 40: extern void ipc_thread_enable(thread_t);
! 41: extern void ipc_thread_disable(thread_t);
! 42: extern void ipc_thread_terminate(thread_t);
1.1 root 43:
44: extern struct ipc_port *
1.1.1.3 ! root 45: retrieve_task_self(task_t);
1.1 root 46:
47: extern struct ipc_port *
1.1.1.3 ! root 48: retrieve_task_self_fast(task_t);
1.1 root 49:
50: extern struct ipc_port *
1.1.1.3 ! root 51: retrieve_thread_self(thread_t);
1.1 root 52:
53: extern struct ipc_port *
1.1.1.3 ! root 54: retrieve_thread_self_fast(thread_t);
1.1 root 55:
56: extern struct ipc_port *
1.1.1.3 ! root 57: retrieve_task_exception(task_t);
1.1 root 58:
59: extern struct ipc_port *
1.1.1.3 ! root 60: retrieve_thread_exception(thread_t);
1.1 root 61:
62: extern struct task *
1.1.1.3 ! root 63: convert_port_to_task(struct ipc_port *);
1.1 root 64:
65: extern struct ipc_port *
1.1.1.3 ! root 66: convert_task_to_port(task_t);
1.1 root 67:
68: extern void
1.1.1.3 ! root 69: task_deallocate(task_t);
1.1 root 70:
71: extern struct thread *
1.1.1.3 ! root 72: convert_port_to_thread(struct ipc_port *);
1.1 root 73:
74: extern struct ipc_port *
1.1.1.3 ! root 75: convert_thread_to_port(thread_t);
1.1 root 76:
77: extern void
1.1.1.3 ! root 78: thread_deallocate(thread_t);
1.1 root 79:
80: extern struct vm_map *
1.1.1.3 ! root 81: convert_port_to_map(struct ipc_port *);
1.1 root 82:
83: extern struct ipc_space *
1.1.1.3 ! root 84: convert_port_to_space(struct ipc_port *);
1.1 root 85:
86: extern void
1.1.1.3 ! root 87: space_deallocate(ipc_space_t);
! 88:
! 89: mach_port_t
! 90: mach_reply_port (void);
1.1 root 91:
1.1.1.2 root 92: #endif /* _KERN_IPC_TT_H_ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.