FreeBSD/Linux Kernel Cross Reference
sys/kern/mach_param.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: mach_param.h,v $
29 * Revision 2.6 92/03/10 16:26:45 jsb
30 * 19-Feb-92 David L. Black (dlb) at Open Software Foundation
31 * Double object slop in PORT_MAX; allow for extra (non-task)
32 * ipc spaces (e.g. ipc_space_remote) in SPACE_MAX
33 * [92/03/07 08:51:33 jsb]
34 *
35 * Revision 2.5 91/05/14 16:44:25 mrt
36 * Correcting copyright
37 *
38 * Revision 2.4 91/02/05 17:27:56 mrt
39 * Changed to new Mach copyright
40 * [91/02/01 16:15:07 mrt]
41 *
42 * Revision 2.3 90/06/02 14:55:13 rpd
43 * Added new IPC parameters.
44 * [90/03/26 22:11:55 rpd]
45 *
46 *
47 * Condensed history:
48 * Moved TASK_MAX, PORT_MAX, etc. here from mach/mach_param.h (rpd).
49 */
50 /*
51 * File: kern/mach_param.h
52 * Author: Avadis Tevanian, Jr., Michael Wayne Young
53 * Date: 1986
54 *
55 * Mach system sizing parameters
56 *
57 */
58
59 #ifndef _KERN_MACH_PARAM_H_
60 #define _KERN_MACH_PARAM_H_
61
62 #define THREAD_MAX 1024 /* Max number of threads */
63 #define THREAD_CHUNK 64 /* Allocation chunk */
64
65 #define TASK_MAX 1024 /* Max number of tasks */
66 #define TASK_CHUNK 64 /* Allocation chunk */
67
68 #define PORT_MAX ((TASK_MAX * 3 + THREAD_MAX) /* kernel */ \
69 + (THREAD_MAX * 2) /* user */ \
70 + 40000) /* slop for objects */
71 /* Number of ports, system-wide */
72
73 #define SET_MAX (TASK_MAX + THREAD_MAX + 200)
74 /* Max number of port sets */
75
76 #define ITE_MAX (1 << 16) /* Max number of splay tree entries */
77
78 #define SPACE_MAX (TASK_MAX + 5) /* Max number of IPC spaces */
79
80 #define IMAR_MAX (1 << 10) /* Max number of msg-accepted reqs */
81
82 #endif _KERN_MACH_PARAM_H_
Cache object: 25aadcf4b04a0d1e66a968a6414e747a
|