Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/mach Notification request packets format, nothing...



details:   https://anonhg.NetBSD.org/src/rev/6473265cb747
branches:  trunk
changeset: 543588:6473265cb747
user:      manu <manu%NetBSD.org@localhost>
date:      Fri Feb 28 09:30:23 2003 +0000

description:
Notification request packets format, nothing implemented yet.

diffstat:

 sys/compat/mach/mach_namemap.c |   5 +++--
 sys/compat/mach/mach_port.h    |  25 ++++++++++++++++++++++---
 2 files changed, 25 insertions(+), 5 deletions(-)

diffs (72 lines):

diff -r a65db2e1d5f0 -r 6473265cb747 sys/compat/mach/mach_namemap.c
--- a/sys/compat/mach/mach_namemap.c    Fri Feb 28 07:37:56 2003 +0000
+++ b/sys/compat/mach/mach_namemap.c    Fri Feb 28 09:30:23 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mach_namemap.c,v 1.17 2003/02/07 20:40:37 manu Exp $ */
+/*     $NetBSD: mach_namemap.c,v 1.18 2003/02/28 09:30:23 manu Exp $ */
 
 /*-
  * Copyright (c) 2002-2003 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mach_namemap.c,v 1.17 2003/02/07 20:40:37 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mach_namemap.c,v 1.18 2003/02/28 09:30:23 manu Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -92,6 +92,7 @@
        { 3205, mach_port_destroy, "port_destroy" },
        { 3206, mach_port_deallocate, "port_deallocate" },
        { 3212, mach_port_move_member, "port_move_member" },
+/*     { 3213, mach_port_request_notification, "port_request_notification" },*/
        { 3214, mach_port_insert_right, "port_insert_right" },
        { 3218, mach_port_set_attributes, "port_set_attributes" },
        { 3226, mach_port_insert_member, "port_insert_member" },
diff -r a65db2e1d5f0 -r 6473265cb747 sys/compat/mach/mach_port.h
--- a/sys/compat/mach/mach_port.h       Fri Feb 28 07:37:56 2003 +0000
+++ b/sys/compat/mach/mach_port.h       Fri Feb 28 09:30:23 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mach_port.h,v 1.22 2003/02/20 22:39:42 manu Exp $ */
+/*     $NetBSD: mach_port.h,v 1.23 2003/02/28 09:30:23 manu Exp $ */
 
 /*-
  * Copyright (c) 2002-2003 The NetBSD Foundation, Inc.
@@ -217,6 +217,25 @@
        mach_msg_trailer_t rep_trailer;
 } mach_port_destroy_reply_t;
 
+/* port_request_notification */
+
+typedef struct {
+       mach_msg_header_t req_msgh;
+       mach_msg_body_t req_body;
+       mach_msg_port_descriptor_t req_notify;
+       mach_ndr_record_t req_ndr;
+       mach_port_name_t req_name;
+       mach_msg_id_t req_msgid;
+       mach_port_mscount_t req_count;
+} port_request_notification_request_t;
+
+typedef struct {
+       mach_msg_header_t rep_msgh;
+       mach_msg_body_t rep_body;
+       mach_msg_port_descriptor_t rep_previous;
+       mach_msg_trailer_t rep_trailer;
+} port_request_notification_reply_t;
+
 int mach_port_deallocate(struct mach_trap_args *);
 int mach_port_allocate(struct mach_trap_args *);
 int mach_port_insert_right(struct mach_trap_args *);
@@ -273,8 +292,8 @@
 };
 
 /* mp_flags for struct mach_port */
-#define MACH_MP_INKERNEL       0x1     /* Receiver is inside the kernel */
-#define MACH_MP_DATA_ALLOCATED 0x2     /* mp_data was malloc'ed */
+#define MACH_MP_INKERNEL       0x01    /* Receiver is inside the kernel */
+#define MACH_MP_DATA_ALLOCATED 0x02    /* mp_data was malloc'ed */
 
 /* mp_datatype for struct mach_port */
 #define        MACH_MP_NONE            0x0     /* No data */



Home | Main Index | Thread Index | Old Index