]>
Commit | Line | Data |
---|---|---|
1c79356b A |
1 | /* |
2 | * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
6 | * The contents of this file constitute Original Code as defined in and | |
7 | * are subject to the Apple Public Source License Version 1.1 (the | |
8 | * "License"). You may not use this file except in compliance with the | |
9 | * License. Please obtain a copy of the License at | |
10 | * http://www.apple.com/publicsource and read it before using this file. | |
11 | * | |
12 | * This Original Code and all software distributed under the License are | |
13 | * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
14 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
15 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
16 | * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the | |
17 | * License for the specific language governing rights and limitations | |
18 | * under the License. | |
19 | * | |
20 | * @APPLE_LICENSE_HEADER_END@ | |
21 | */ | |
22 | /* | |
23 | * @OSF_COPYRIGHT@ | |
24 | */ | |
25 | /* | |
26 | * HISTORY | |
27 | * | |
28 | * Revision 1.1.1.1 1998/09/22 21:05:34 wsanchez | |
29 | * Import of Mac OS X kernel (~semeria) | |
30 | * | |
31 | * Revision 1.1.1.1 1998/03/07 02:25:55 wsanchez | |
32 | * Import of OSF Mach kernel (~mburg) | |
33 | * | |
34 | * Revision 1.1.5.1 1994/09/23 02:20:11 ezf | |
35 | * change marker to not FREE | |
36 | * [1994/09/22 21:33:42 ezf] | |
37 | * | |
38 | * Revision 1.1.3.1 1994/01/20 11:05:50 emcmanus | |
39 | * Copied for submission. | |
40 | * [1994/01/20 11:04:35 emcmanus] | |
41 | * | |
42 | * Revision 1.1.1.2 1994/01/13 02:41:12 condict | |
43 | * Declarations for kern/ipc_subsystem.c | |
44 | * | |
45 | * $EndLog$ | |
46 | */ | |
47 | ||
48 | #ifndef _KERN_IPC_SUBSYSTEM_H_ | |
49 | #define _KERN_IPC_SUBSYSTEM_H_ | |
50 | ||
51 | #include <mach/boolean.h> | |
52 | #include <mach/port.h> | |
53 | #include <kern/subsystem.h> | |
54 | #include <ipc/ipc_port.h> | |
55 | #include <ipc/ipc_object.h> | |
56 | ||
57 | ||
58 | /* Initialize a subsystem's IPC state */ | |
59 | extern void ipc_subsystem_init( | |
60 | subsystem_t subsystem); | |
61 | ||
62 | /* Enable a subsystem for IPC access */ | |
63 | extern void ipc_subsystem_enable( | |
64 | subsystem_t subsystem); | |
65 | ||
66 | /* Disable IPC access to a subsystem */ | |
67 | extern void ipc_subsystem_disable( | |
68 | subsystem_t subsystem); | |
69 | ||
70 | /* Clean up and destroy a subsystem's IPC state */ | |
71 | extern void ipc_subsystem_terminate( | |
72 | subsystem_t subsystem); | |
73 | ||
74 | /* Convert from a port to a subsystem */ | |
75 | extern subsystem_t convert_port_to_subsystem( | |
76 | ipc_port_t port); | |
77 | ||
78 | /* Convert from a subsystem to a port */ | |
79 | extern ipc_port_t convert_subsystem_to_port( | |
80 | subsystem_t subsystem); | |
81 | ||
82 | #endif /* _KERN_IPC_SUBSYSTEM_H_ */ |