1 /* $NetBSD: mach_notify.h,v 1.9 2005/12/11 12:20:20 christos Exp $ */
4 * Copyright (c) 2003 The NetBSD Foundation, Inc.
7 * This code is derived from software contributed to The NetBSD Foundation
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
32 #ifndef _MACH_NOTIFICATION_H_
33 #define _MACH_NOTIFICATION_H_
35 #define MACH_NOTIFY_DELETED_MSGID 65
36 #define MACH_NOTIFY_DESTROYED_MSGID 69
37 #define MACH_NOTIFY_NO_SENDERS_MSGID 70
38 #define MACH_NOTIFY_SEND_ONCE_MSGID 71
39 #define MACH_NOTIFY_DEAD_NAME_MSGID 72
42 mach_msg_header_t req_msgh
;
43 mach_ndr_record_t req_ndr
;
44 mach_port_name_t req_name
;
45 mach_msg_trailer_t req_trailer
;
46 } mach_notify_port_deleted_request_t
;
49 mach_msg_header_t req_msgh
;
50 mach_msg_body_t req_body
;
51 mach_msg_port_descriptor_t req_rights
;
52 mach_msg_trailer_t req_trailer
;
53 } mach_notify_port_destroyed_request_t
;
56 mach_msg_header_t req_msgh
;
57 mach_ndr_record_t req_ndr
;
58 mach_port_mscount_t req_mscount
;
59 mach_msg_trailer_t req_trailer
;
60 } mach_notify_port_no_senders_request_t
;
63 mach_msg_header_t req_msgh
;
64 mach_msg_trailer_t req_trailer
;
65 } mach_notify_send_once_request_t
;
68 mach_msg_header_t req_msgh
;
69 mach_ndr_record_t req_ndr
;
70 mach_port_name_t req_name
;
71 mach_msg_trailer_t req_trailer
;
72 } mach_notify_port_dead_name_request_t
;
74 void mach_notify_port_destroyed(struct lwp
*, struct mach_right
*);
75 void mach_notify_port_no_senders(struct lwp
*, struct mach_right
*);
76 void mach_notify_port_dead_name(struct lwp
*, struct mach_right
*);
78 #endif /* _MACH_NOTIFICATION_H_ */