summaryrefslogtreecommitdiff
path: root/eth-filter
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-12-07 15:45:17 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-12-07 15:45:17 +0100
commit09aa594a5be3198de9fc5b60cfb9f689f359af0f (patch)
treed5d4000a6cc6fae053c16d04ca93e968ec6b0770 /eth-filter
parent86ecb6b0079efaf5f925f068ae9d475497d8a478 (diff)
sync dde stuff
Diffstat (limited to 'eth-filter')
-rw-r--r--eth-filter/mig-decls.h6
-rw-r--r--eth-filter/mig-mutate.h4
2 files changed, 10 insertions, 0 deletions
diff --git a/eth-filter/mig-decls.h b/eth-filter/mig-decls.h
index 0bb29a64..a3f700c8 100644
--- a/eth-filter/mig-decls.h
+++ b/eth-filter/mig-decls.h
@@ -35,6 +35,12 @@ begin_using_device_port (mach_port_t port)
return ports_lookup_port (port_bucket, port, user_portclass);
}
+static inline struct proxy_user * __attribute__ ((unused))
+begin_using_device_payload (unsigned long payload)
+{
+ return ports_lookup_payload (port_bucket, payload, user_portclass);
+}
+
static inline void __attribute__ ((unused))
end_using_device (struct proxy_user *p)
{
diff --git a/eth-filter/mig-mutate.h b/eth-filter/mig-mutate.h
index 388ce090..5c6cde9f 100644
--- a/eth-filter/mig-mutate.h
+++ b/eth-filter/mig-mutate.h
@@ -19,6 +19,8 @@
#define NOTIFY_INTRAN \
port_info_t begin_using_port_info_port (mach_port_t)
+#define NOTIFY_INTRAN_PAYLOAD \
+ port_info_t begin_using_port_info_payload
#define NOTIFY_DESTRUCTOR \
end_using_port_info (port_info_t)
#define NOTIFY_IMPORTS \
@@ -26,6 +28,8 @@
#define DEVICE_INTRAN \
proxy_user_t begin_using_device_port (mach_port_t)
+#define DEVICE_INTRAN_PAYLOAD \
+ proxy_user_t begin_using_device_payload
#define DEVICE_DESTRUCTOR \
end_using_device (proxy_user_t)
#define DEVICE_IMPORTS \