FreeBSD/Linux Kernel Cross Reference
sys/kern/ipc_tt.h
1 /*
2 * Mach Operating System
3 * Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University
4 * All Rights Reserved.
5 *
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.
11 *
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.
15 *
16 * Carnegie Mellon requests users of this software to return to
17 *
18 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 * School of Computer Science
20 * Carnegie Mellon University
21 * Pittsburgh PA 15213-3890
22 *
23 * any improvements or extensions that they make and grant Carnegie Mellon
24 * the rights to redistribute these changes.
25 */
26 /*
27 * HISTORY
28 * $Log: ipc_tt.h,v $
29 * Revision 2.6 91/06/25 10:29:05 rpd
30 * Changed the convert_foo_to_bar functions
31 * to use ipc_port_t instead of mach_port_t.
32 * [91/05/27 rpd]
33 *
34 * Revision 2.5 91/05/14 16:43:09 mrt
35 * Correcting copyright
36 *
37 * Revision 2.4 91/02/05 17:27:19 mrt
38 * Changed to new Mach copyright
39 * [91/02/01 16:14:05 mrt]
40 *
41 * Revision 2.3 91/01/08 15:16:15 rpd
42 * Added retrieve_task_self_fast, retrieve_thread_self_fast.
43 * [90/12/27 rpd]
44 *
45 * Revision 2.2 90/06/02 14:54:42 rpd
46 * Converted to new IPC.
47 * [90/03/26 22:05:32 rpd]
48 *
49 * Revision 2.1 89/08/03 15:57:16 rwd
50 * Created.
51 *
52 * Revision 2.3 88/09/25 22:14:32 rpd
53 * Changed includes to the new style.
54 * [88/09/19 16:25:46 rpd]
55 *
56 * Revision 2.2 88/08/06 18:21:33 rpd
57 * Created.
58 *
59 */
60
61 #ifndef _KERN_IPC_TT_H_
62 #define _KERN_IPC_TT_H_
63
64 #include <mach/boolean.h>
65 #include <mach/port.h>
66
67 extern void ipc_task_init();
68 extern void ipc_task_enable();
69 extern void ipc_task_disable();
70 extern void ipc_task_terminate();
71
72 extern void ipc_thread_init();
73 extern void ipc_thread_enable();
74 extern void ipc_thread_disable();
75 extern void ipc_thread_terminate();
76
77 extern struct ipc_port *
78 retrieve_task_self(/* task_t */);
79
80 extern struct ipc_port *
81 retrieve_task_self_fast(/* task_t */);
82
83 extern struct ipc_port *
84 retrieve_thread_self(/* thread_t */);
85
86 extern struct ipc_port *
87 retrieve_thread_self_fast(/* thread_t */);
88
89 extern struct ipc_port *
90 retrieve_task_exception(/* task_t */);
91
92 extern struct ipc_port *
93 retrieve_thread_exception(/* thread_t */);
94
95 extern struct task *
96 convert_port_to_task(/* struct ipc_port * */);
97
98 extern struct ipc_port *
99 convert_task_to_port(/* task_t */);
100
101 extern void
102 task_deallocate(/* task_t */);
103
104 extern struct thread *
105 convert_port_to_thread(/* struct ipc_port * */);
106
107 extern struct ipc_port *
108 convert_thread_to_port(/* thread_t */);
109
110 extern void
111 thread_deallocate(/* thread_t */);
112
113 extern struct vm_map *
114 convert_port_to_map(/* struct ipc_port * */);
115
116 extern struct ipc_space *
117 convert_port_to_space(/* struct ipc_port * */);
118
119 extern void
120 space_deallocate(/* ipc_space_t */);
121
122 #endif _KERN_IPC_TT_H_
Cache object: bab0eed4576936ce3b044eab45e1ccff
|