Annotation of OSKit-Mach/include/mach/task_special_ports.h, revision 1.1.1.1

1.1       root        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  [email protected]
                     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:  *     File:   mach/task_special_ports.h
                     28:  *
                     29:  *     Defines codes for special_purpose task ports.  These are NOT
                     30:  *     port identifiers - they are only used for the task_get_special_port
                     31:  *     and task_set_special_port routines.
                     32:  *     
                     33:  */
                     34: 
                     35: #ifndef        _MACH_TASK_SPECIAL_PORTS_H_
                     36: #define _MACH_TASK_SPECIAL_PORTS_H_
                     37: 
                     38: #ifdef MACH_KERNEL
                     39: #include <mach_ipc_compat.h>
                     40: #endif /* MACH_KERNEL */
                     41: 
                     42: #define TASK_KERNEL_PORT       1       /* Represents task to the outside
                     43:                                           world.*/
                     44: #define TASK_EXCEPTION_PORT    3       /* Exception messages for task are
                     45:                                           sent to this port. */
                     46: #define TASK_BOOTSTRAP_PORT    4       /* Bootstrap environment for task. */
                     47: 
                     48: /*
                     49:  *     Definitions for ease of use
                     50:  */
                     51: 
                     52: #define task_get_kernel_port(task, port)       \
                     53:                (task_get_special_port((task), TASK_KERNEL_PORT, (port)))
                     54: 
                     55: #define task_set_kernel_port(task, port)       \
                     56:                (task_set_special_port((task), TASK_KERNEL_PORT, (port)))
                     57: 
                     58: #define task_get_exception_port(task, port)    \
                     59:                (task_get_special_port((task), TASK_EXCEPTION_PORT, (port)))
                     60: 
                     61: #define task_set_exception_port(task, port)    \
                     62:                (task_set_special_port((task), TASK_EXCEPTION_PORT, (port)))
                     63: 
                     64: #define task_get_bootstrap_port(task, port)    \
                     65:                (task_get_special_port((task), TASK_BOOTSTRAP_PORT, (port)))
                     66: 
                     67: #define task_set_bootstrap_port(task, port)    \
                     68:                (task_set_special_port((task), TASK_BOOTSTRAP_PORT, (port)))
                     69: 
                     70: 
                     71: /* Definitions for the old IPC interface. */
                     72: 
                     73: #if    MACH_IPC_COMPAT
                     74: 
                     75: #define TASK_NOTIFY_PORT       2       /* Task receives kernel IPC
                     76:                                           notifications here. */
                     77: 
                     78: #define task_get_notify_port(task, port)       \
                     79:                (task_get_special_port((task), TASK_NOTIFY_PORT, (port)))
                     80: 
                     81: #define task_set_notify_port(task, port)       \
                     82:                (task_set_special_port((task), TASK_NOTIFY_PORT, (port)))
                     83: 
                     84: #endif /* MACH_IPC_COMPAT */
                     85: 
                     86: #endif /* _MACH_TASK_SPECIAL_PORTS_H_ */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.