[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 15/23] proc: add a payload-aware intrans function
From: |
Justus Winter |
Subject: |
[PATCH 15/23] proc: add a payload-aware intrans function |
Date: |
Fri, 29 Nov 2013 01:03:43 +0100 |
* proc/mig-decls.h (begin_using_exc_payload): New function.
* proc/proc_exc.defs (exception_t): Add payload-aware in-translator
function.
---
proc/mig-decls.h | 6 ++++++
proc/proc_exc.defs | 1 +
2 files changed, 7 insertions(+)
diff --git a/proc/mig-decls.h b/proc/mig-decls.h
index 0d5bd4d..8c86c85 100644
--- a/proc/mig-decls.h
+++ b/proc/mig-decls.h
@@ -32,6 +32,12 @@ begin_using_exc_port (mach_port_t port)
return ports_lookup_port (NULL, port, exc_class);
}
+static inline exc_t __attribute__ ((unused))
+begin_using_exc_payload (unsigned long payload)
+{
+ return ports_lookup_payload (NULL, payload, exc_class);
+}
+
static inline void __attribute__ ((unused))
end_using_exc (exc_t exc)
{
diff --git a/proc/proc_exc.defs b/proc/proc_exc.defs
index c910824..9dc3626 100644
--- a/proc/proc_exc.defs
+++ b/proc/proc_exc.defs
@@ -38,6 +38,7 @@ import "mig-decls.h";
type exception_t = mach_port_copy_send_t
cusertype: mach_port_t
intran: exc_t begin_using_exc_port (exception_t)
+ intranpayload: exc_t begin_using_exc_payload
destructor: end_using_exc (exc_t);
routine proc_exception_raise (
--
1.7.10.4
- [PATCH 05/23] console: add a payload-aware intrans function, (continued)
- [PATCH 05/23] console: add a payload-aware intrans function, Justus Winter, 2013/11/28
- [PATCH 07/23] libnetfs: add a payload-aware intrans function, Justus Winter, 2013/11/28
- [PATCH 06/23] libdiskfs: add a payload-aware intrans function, Justus Winter, 2013/11/28
- [PATCH 10/23] exec: add intranspayload, Justus Winter, 2013/11/28
- [PATCH 08/23] libtrivfs: add a payload-aware intrans functions, Justus Winter, 2013/11/28
- [PATCH 09/23] libcons: add a payload-aware intrans function, Justus Winter, 2013/11/28
- [PATCH 11/23] pfinet: add a payload-aware intrans functions, Justus Winter, 2013/11/28
- [PATCH 13/23] auth: add a payload-aware intrans function, Justus Winter, 2013/11/28
- [PATCH 12/23] pflocal: add a payload-aware intrans functions, Justus Winter, 2013/11/28
- [PATCH 14/23] trans: add a payload-aware intrans function to password, Justus Winter, 2013/11/28
- [PATCH 15/23] proc: add a payload-aware intrans function,
Justus Winter <=
- [PATCH 17/23] trans: disable default payload to port mapping in fsysServer.c, Justus Winter, 2013/11/28
- [PATCH 16/23] init: disable default payload to port mapping, Justus Winter, 2013/11/28
- [PATCH 18/23] libports: add ports_payload_get_name, Justus Winter, 2013/11/28
- [PATCH 19/23] hurd: add intranpayload functions to all hurd types, Justus Winter, 2013/11/28
- [PATCH 22/23] Fix build, Justus Winter, 2013/11/28
- [PATCH 23/23] XXX i broke rpctrace, Justus Winter, 2013/11/28
- [PATCH 21/23] XXX libports: clear payload prior to port destruction, Justus Winter, 2013/11/28
- [PATCH 20/23] libports: use protected payloads to optimize the object lookup, Justus Winter, 2013/11/28