blob: 6d783ddedb2d2db5e1444bc176ce7d5177aed78c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
/*
* Mach Operating System
* Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University
* All Rights Reserved.
*
* Permission to use, copy, modify and distribute this software and its
* documentation is hereby granted, provided that both the copyright
* notice and this permission notice appear in all copies of the
* software, derivative works or modified versions, and any portions
* thereof, and that both notices appear in supporting documentation.
*
* CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
* CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
* ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
*
* Carnegie Mellon requests users of this software to return to
*
* Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
* School of Computer Science
* Carnegie Mellon University
* Pittsburgh PA 15213-3890
*
* any improvements or extensions that they make and grant Carnegie Mellon
* the rights to redistribute these changes.
*/
/*
* File: mach/notify.h
*
* Kernel notification message definitions.
*/
#ifndef _MACH_NOTIFY_H_
#define _MACH_NOTIFY_H_
#include <mach/port.h>
#include <mach/message.h>
/*
* An alternative specification of the notification interface
* may be found in mach/notify.defs.
*/
#define MACH_NOTIFY_FIRST 0100
#define MACH_NOTIFY_PORT_DELETED (MACH_NOTIFY_FIRST + 001 )
/* A send or send-once right was deleted. */
#define MACH_NOTIFY_MSG_ACCEPTED (MACH_NOTIFY_FIRST + 002)
/* A MACH_SEND_NOTIFY msg was accepted */
#define MACH_NOTIFY_PORT_DESTROYED (MACH_NOTIFY_FIRST + 005)
/* A receive right was (would have been) deallocated */
#define MACH_NOTIFY_NO_SENDERS (MACH_NOTIFY_FIRST + 006)
/* Receive right has no extant send rights */
#define MACH_NOTIFY_SEND_ONCE (MACH_NOTIFY_FIRST + 007)
/* An extant send-once right died */
#define MACH_NOTIFY_DEAD_NAME (MACH_NOTIFY_FIRST + 010)
/* Send or send-once right died, leaving a dead-name */
#define MACH_NOTIFY_LAST (MACH_NOTIFY_FIRST + 015)
typedef struct {
mach_msg_header_t not_header;
mach_msg_type_t not_type; /* MACH_MSG_TYPE_PORT_NAME */
mach_port_t not_port;
} mach_port_deleted_notification_t;
typedef struct {
mach_msg_header_t not_header;
mach_msg_type_t not_type; /* MACH_MSG_TYPE_PORT_NAME */
mach_port_t not_port;
} mach_msg_accepted_notification_t;
typedef struct {
mach_msg_header_t not_header;
mach_msg_type_t not_type; /* MACH_MSG_TYPE_PORT_RECEIVE */
mach_port_t not_port;
} mach_port_destroyed_notification_t;
typedef struct {
mach_msg_header_t not_header;
mach_msg_type_t not_type; /* MACH_MSG_TYPE_INTEGER_32 */
unsigned int not_count;
} mach_no_senders_notification_t;
typedef struct {
mach_msg_header_t not_header;
} mach_send_once_notification_t;
typedef struct {
mach_msg_header_t not_header;
mach_msg_type_t not_type; /* MACH_MSG_TYPE_PORT_NAME */
mach_port_t not_port;
} mach_dead_name_notification_t;
#endif /* _MACH_NOTIFY_H_ */
|