]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/kern/ipc_subsystem.h
bcd7cf284f052feab0b55981e48501d79679c53a
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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.
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
20 * @APPLE_LICENSE_HEADER_END@
28 * Revision 1.1.1.1 1998/09/22 21:05:34 wsanchez
29 * Import of Mac OS X kernel (~semeria)
31 * Revision 1.1.1.1 1998/03/07 02:25:55 wsanchez
32 * Import of OSF Mach kernel (~mburg)
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]
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]
42 * Revision 1.1.1.2 1994/01/13 02:41:12 condict
43 * Declarations for kern/ipc_subsystem.c
48 #ifndef _KERN_IPC_SUBSYSTEM_H_
49 #define _KERN_IPC_SUBSYSTEM_H_
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>
58 /* Initialize a subsystem's IPC state */
59 extern void ipc_subsystem_init(
60 subsystem_t subsystem
);
62 /* Enable a subsystem for IPC access */
63 extern void ipc_subsystem_enable(
64 subsystem_t subsystem
);
66 /* Disable IPC access to a subsystem */
67 extern void ipc_subsystem_disable(
68 subsystem_t subsystem
);
70 /* Clean up and destroy a subsystem's IPC state */
71 extern void ipc_subsystem_terminate(
72 subsystem_t subsystem
);
74 /* Convert from a port to a subsystem */
75 extern subsystem_t
convert_port_to_subsystem(
78 /* Convert from a subsystem to a port */
79 extern ipc_port_t
convert_subsystem_to_port(
80 subsystem_t subsystem
);
82 #endif /* _KERN_IPC_SUBSYSTEM_H_ */