Annotation of Gnu-Mach/ipc/ipc_pset.h, revision 1.1.1.3

1.1       root        1: /*
                      2:  * Mach Operating System
                      3:  * Copyright (c) 1991,1990,1989 Carnegie Mellon University.
                      4:  * Copyright (c) 1993,1994 The University of Utah and
                      5:  * the Computer Systems Laboratory (CSL).
                      6:  * All rights reserved.
                      7:  *
                      8:  * Permission to use, copy, modify and distribute this software and its
                      9:  * documentation is hereby granted, provided that both the copyright
                     10:  * notice and this permission notice appear in all copies of the
                     11:  * software, derivative works or modified versions, and any portions
                     12:  * thereof, and that both notices appear in supporting documentation.
                     13:  *
                     14:  * CARNEGIE MELLON, THE UNIVERSITY OF UTAH AND CSL ALLOW FREE USE OF
                     15:  * THIS SOFTWARE IN ITS "AS IS" CONDITION, AND DISCLAIM ANY LIABILITY
                     16:  * OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF
                     17:  * THIS SOFTWARE.
                     18:  *
                     19:  * Carnegie Mellon requests users of this software to return to
                     20:  *
                     21:  *  Software Distribution Coordinator  or  [email protected]
                     22:  *  School of Computer Science
                     23:  *  Carnegie Mellon University
                     24:  *  Pittsburgh PA 15213-3890
                     25:  *
                     26:  * any improvements or extensions that they make and grant Carnegie Mellon
                     27:  * the rights to redistribute these changes.
                     28:  */
                     29: /*
                     30:  */
                     31: /*
                     32:  *     File:   ipc/ipc_pset.h
                     33:  *     Author: Rich Draves
                     34:  *     Date:   1989
                     35:  *
                     36:  *     Definitions for port sets.
                     37:  */
                     38: 
                     39: #ifndef        _IPC_IPC_PSET_H_
                     40: #define _IPC_IPC_PSET_H_
                     41: 
                     42: #include <mach/port.h>
                     43: #include <mach/kern_return.h>
                     44: #include <ipc/ipc_object.h>
                     45: #include <ipc/ipc_mqueue.h>
                     46: #include "ipc_target.h"
                     47: 
                     48: typedef struct ipc_pset {
                     49:        struct ipc_target ips_target;
                     50: 
                     51: } *ipc_pset_t;
                     52: 
                     53: #define ips_object             ips_target.ipt_object
                     54: #define ips_local_name         ips_target.ipt_name
                     55: #define ips_messages           ips_target.ipt_messages
                     56: #define        ips_references          ips_object.io_references
                     57: 
                     58: #define        IPS_NULL                ((ipc_pset_t) IO_NULL)
                     59: 
                     60: #define        ips_active(pset)        io_active(&(pset)->ips_object)
                     61: #define        ips_lock(pset)          io_lock(&(pset)->ips_object)
                     62: #define        ips_lock_try(pset)      io_lock_try(&(pset)->ips_object)
                     63: #define        ips_unlock(pset)        io_unlock(&(pset)->ips_object)
                     64: #define        ips_check_unlock(pset)  io_check_unlock(&(pset)->ips_object)
                     65: #define        ips_reference(pset)     io_reference(&(pset)->ips_object)
                     66: #define        ips_release(pset)       io_release(&(pset)->ips_object)
                     67: 
                     68: extern kern_return_t
1.1.1.3 ! root       69: ipc_pset_alloc(ipc_space_t, mach_port_t *, ipc_pset_t *);
1.1       root       70: 
                     71: extern kern_return_t
1.1.1.3 ! root       72: ipc_pset_alloc_name(ipc_space_t, mach_port_t, ipc_pset_t *);
1.1       root       73: 
                     74: extern void
1.1.1.3 ! root       75: ipc_pset_add(ipc_pset_t, ipc_port_t);
1.1       root       76: 
                     77: extern void
1.1.1.3 ! root       78: ipc_pset_remove(ipc_pset_t, ipc_port_t);
1.1       root       79: 
                     80: extern kern_return_t
1.1.1.3 ! root       81: ipc_pset_move(ipc_space_t, ipc_port_t, ipc_pset_t);
1.1       root       82: 
                     83: extern void
1.1.1.3 ! root       84: ipc_pset_destroy(ipc_pset_t);
1.1       root       85: 
                     86: #define        ipc_pset_reference(pset)        \
                     87:                ipc_object_reference(&(pset)->ips_object)
                     88: 
                     89: #define        ipc_pset_release(pset)          \
                     90:                ipc_object_release(&(pset)->ips_object)
                     91: 
1.1.1.2   root       92: #endif /* _IPC_IPC_PSET_H_ */

unix.superglobalmegacorp.com

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