Annotation of kernel/mach/notify.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
        !             3:  *
        !             4:  * @APPLE_LICENSE_HEADER_START@
        !             5:  * 
        !             6:  * Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
        !             7:  * Reserved.  This file contains Original Code and/or Modifications of
        !             8:  * Original Code as defined in and that are subject to the Apple Public
        !             9:  * Source License Version 1.1 (the "License").  You may not use this file
        !            10:  * except in compliance with the License.  Please obtain a copy of the
        !            11:  * License at http://www.apple.com/publicsource and read it before using
        !            12:  * this file.
        !            13:  * 
        !            14:  * The Original Code and all software distributed under the License are
        !            15:  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
        !            16:  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
        !            17:  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
        !            18:  * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
        !            19:  * License for the specific language governing rights and limitations
        !            20:  * under the License.
        !            21:  * 
        !            22:  * @APPLE_LICENSE_HEADER_END@
        !            23:  */
        !            24: 
        !            25: /*
        !            26:  * Copyright (c) 1995, 1994, 1993, 1992, 1991, 1990  
        !            27:  * Open Software Foundation, Inc. 
        !            28:  *  
        !            29:  * Permission to use, copy, modify, and distribute this software and 
        !            30:  * its documentation for any purpose and without fee is hereby granted, 
        !            31:  * provided that the above copyright notice appears in all copies and 
        !            32:  * that both the copyright notice and this permission notice appear in 
        !            33:  * supporting documentation, and that the name of ("OSF") or Open Software 
        !            34:  * Foundation not be used in advertising or publicity pertaining to 
        !            35:  * distribution of the software without specific, written prior permission. 
        !            36:  *  
        !            37:  * OSF DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE 
        !            38:  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 
        !            39:  * FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL OSF BE LIABLE FOR ANY 
        !            40:  * SPECIAL, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 
        !            41:  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN 
        !            42:  * ACTION OF CONTRACT, NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING 
        !            43:  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE 
        !            44:  */
        !            45: /*
        !            46:  * OSF Research Institute MK6.1 (unencumbered) 1/31/1995
        !            47:  */
        !            48: /* 
        !            49:  * Mach Operating System
        !            50:  * Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University
        !            51:  * All Rights Reserved.
        !            52:  * 
        !            53:  * Permission to use, copy, modify and distribute this software and its
        !            54:  * documentation is hereby granted, provided that both the copyright
        !            55:  * notice and this permission notice appear in all copies of the
        !            56:  * software, derivative works or modified versions, and any portions
        !            57:  * thereof, and that both notices appear in supporting documentation.
        !            58:  * 
        !            59:  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
        !            60:  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
        !            61:  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
        !            62:  * 
        !            63:  * Carnegie Mellon requests users of this software to return to
        !            64:  * 
        !            65:  *  Software Distribution Coordinator  or  [email protected]
        !            66:  *  School of Computer Science
        !            67:  *  Carnegie Mellon University
        !            68:  *  Pittsburgh PA 15213-3890
        !            69:  * 
        !            70:  * any improvements or extensions that they make and grant Carnegie Mellon
        !            71:  * the rights to redistribute these changes.
        !            72:  */
        !            73: /*
        !            74:  *     File:   mach/notify.h
        !            75:  *
        !            76:  *     Kernel notification message definitions.
        !            77:  */
        !            78: 
        !            79: #ifndef        _MACH_NOTIFY_H_
        !            80: #define _MACH_NOTIFY_H_
        !            81: 
        !            82: #include <mach/port.h>
        !            83: #include <mach/message.h>
        !            84: #include <mach/ndr.h>
        !            85: 
        !            86: /*
        !            87:  *  An alternative specification of the notification interface
        !            88:  *  may be found in mach/notify.defs.
        !            89:  */
        !            90: 
        !            91: #define MACH_NOTIFY_FIRST              0100
        !            92: #define MACH_NOTIFY_PORT_DELETED       (MACH_NOTIFY_FIRST + 001 )
        !            93:                        /* A send or send-once right was deleted. */
        !            94: #define MACH_NOTIFY_MSG_ACCEPTED       (MACH_NOTIFY_FIRST + 002)
        !            95:                        /* A MACH_SEND_NOTIFY msg was accepted */
        !            96: #define MACH_NOTIFY_PORT_DESTROYED     (MACH_NOTIFY_FIRST + 005)
        !            97:                        /* A receive right was (would have been) deallocated */
        !            98: #define MACH_NOTIFY_NO_SENDERS         (MACH_NOTIFY_FIRST + 006)
        !            99:                        /* Receive right has no extant send rights */
        !           100: #define MACH_NOTIFY_SEND_ONCE          (MACH_NOTIFY_FIRST + 007)
        !           101:                        /* An extant send-once right died */
        !           102: #define MACH_NOTIFY_DEAD_NAME          (MACH_NOTIFY_FIRST + 010)
        !           103:                        /* Send or send-once right died, leaving a dead-name */
        !           104: #define MACH_NOTIFY_LAST               (MACH_NOTIFY_FIRST + 015)
        !           105: 
        !           106: typedef struct {
        !           107:     mach_msg_header_t  not_header;
        !           108:     NDR_record_t       NDR;
        !           109:     mach_port_t                not_port;       /* MACH_MSG_TYPE_PORT_NAME */
        !           110:     mach_msg_format_0_trailer_t
        !           111:                        trailer;
        !           112: } mach_port_deleted_notification_t;
        !           113: 
        !           114: typedef struct {
        !           115:     mach_msg_header_t  not_header;
        !           116:     mach_msg_body_t    not_body;
        !           117:     mach_msg_port_descriptor_t
        !           118:                        not_port;       /* MACH_MSG_TYPE_PORT_RECEIVE */
        !           119:     mach_msg_format_0_trailer_t
        !           120:                        trailer;
        !           121: } mach_port_destroyed_notification_t;
        !           122: 
        !           123: typedef struct {
        !           124:     mach_msg_header_t  not_header;
        !           125:     NDR_record_t       NDR;
        !           126:     unsigned int       not_count;      /* MACH_MSG_TYPE_INTEGER_32 */
        !           127:     mach_msg_format_0_trailer_t
        !           128:                        trailer;
        !           129: } mach_no_senders_notification_t;
        !           130: 
        !           131: typedef struct {
        !           132:     mach_msg_header_t  not_header;
        !           133:     mach_msg_format_0_trailer_t
        !           134:                        trailer;
        !           135: } mach_send_once_notification_t;
        !           136: 
        !           137: typedef struct {
        !           138:     mach_msg_header_t  not_header;
        !           139:     NDR_record_t       NDR;
        !           140:     mach_port_t                not_port;       /* MACH_MSG_TYPE_PORT_NAME */
        !           141:     mach_msg_format_0_trailer_t
        !           142:                        trailer;
        !           143: } mach_dead_name_notification_t;
        !           144: 
        !           145: 
        !           146: /* Definitions for the old IPC interface. */
        !           147: 
        !           148: /*
        !           149:  *     Notifications sent upon interesting system events.
        !           150:  */
        !           151: 
        !           152: #define NOTIFY_FIRST                   0100
        !           153: #define NOTIFY_PORT_DELETED            ( NOTIFY_FIRST + 001 )
        !           154: #define NOTIFY_MSG_ACCEPTED            ( NOTIFY_FIRST + 002 )
        !           155: #define NOTIFY_OWNERSHIP_RIGHTS                ( NOTIFY_FIRST + 003 )
        !           156: #define NOTIFY_RECEIVE_RIGHTS          ( NOTIFY_FIRST + 004 )
        !           157: #define NOTIFY_PORT_DESTROYED          ( NOTIFY_FIRST + 005 )
        !           158: #define NOTIFY_NO_MORE_SENDERS         ( NOTIFY_FIRST + 006 )
        !           159: #define NOTIFY_LAST                    ( NOTIFY_FIRST + 015 )
        !           160: 
        !           161: typedef struct {
        !           162:        msg_header_t    notify_header;
        !           163:        msg_type_t      notify_type;
        !           164:        port_t          notify_port;
        !           165: } notification_t;
        !           166: 
        !           167: #endif /* _MACH_NOTIFY_H_ */

unix.superglobalmegacorp.com

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