[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH hurd 14/30] exec: add payload-aware intrans functions
From: |
Justus Winter |
Subject: |
[PATCH hurd 14/30] exec: add payload-aware intrans functions |
Date: |
Thu, 27 Nov 2014 14:18:54 +0100 |
* exec/execmutations.h: Add mutators.
* exec/mig-decls.h (begin_using_bootinfo_payload): New function.
---
exec/execmutations.h | 3 +++
exec/mig-decls.h | 6 ++++++
2 files changed, 9 insertions(+)
diff --git a/exec/execmutations.h b/exec/execmutations.h
index 2acca7a..0b5b8bb 100644
--- a/exec/execmutations.h
+++ b/exec/execmutations.h
@@ -1,6 +1,7 @@
/* CPP definitions for MiG processing of exec.defs for exec server. */
#define FILE_INTRAN trivfs_protid_t trivfs_begin_using_protid (file_t)
+#define FILE_INTRAN_PAYLOAD trivfs_protid_t trivfs_begin_using_protid_payload
#define FILE_DESTRUCTOR trivfs_end_using_protid (trivfs_protid_t)
#define EXEC_IMPORTS \
@@ -9,6 +10,8 @@
#define EXEC_STARTUP_INTRAN \
bootinfo_t begin_using_bootinfo_port (exec_startup_t)
+#define EXEC_STARTUP_INTRAN_PAYLOAD \
+ bootinfo_t begin_using_bootinfo_payload
#define EXEC_STARTUP_DESTRUCTOR \
end_using_bootinfo (bootinfo_t)
#define EXEC_STARTUP_IMPORTS \
diff --git a/exec/mig-decls.h b/exec/mig-decls.h
index 0437414..cf3e17d 100644
--- a/exec/mig-decls.h
+++ b/exec/mig-decls.h
@@ -30,6 +30,12 @@ begin_using_bootinfo_port (mach_port_t port)
return ports_lookup_port (port_bucket, port, execboot_portclass);
}
+static inline struct bootinfo * __attribute__ ((unused))
+begin_using_bootinfo_payload (unsigned long payload)
+{
+ return ports_lookup_payload (port_bucket, payload, execboot_portclass);
+}
+
static inline void __attribute__ ((unused))
end_using_bootinfo (struct bootinfo *b)
{
--
2.1.3
- [PATCH hurd 04/30] libports: add `ports_lookup_payload' and `ports_payload_get_name', (continued)
- [PATCH hurd 04/30] libports: add `ports_lookup_payload' and `ports_payload_get_name', Justus Winter, 2014/11/27
- [PATCH hurd 05/30] libports: add a payload-aware intrans function, Justus Winter, 2014/11/27
- [PATCH hurd 06/30] libdiskfs: add payload-aware intrans functions, Justus Winter, 2014/11/27
- [PATCH hurd 09/30] libpager: add a payload-aware intrans function, Justus Winter, 2014/11/27
- [PATCH hurd 08/30] libtrivfs: add payload-aware intrans functions, Justus Winter, 2014/11/27
- [PATCH hurd 11/30] auth: add a payload-aware intrans function, Justus Winter, 2014/11/27
- [PATCH hurd 10/30] libcons: add a payload-aware intrans function, Justus Winter, 2014/11/27
- [PATCH hurd 12/30] console: add a payload-aware intrans function, Justus Winter, 2014/11/27
- [PATCH hurd 13/30] console-client: make the demuxer payload-aware, Justus Winter, 2014/11/27
- [PATCH hurd 15/30] pfinet: add payload-aware intrans functions, Justus Winter, 2014/11/27
- [PATCH hurd 14/30] exec: add payload-aware intrans functions,
Justus Winter <=
- [PATCH hurd 16/30] pfinet: make the demuxers payload-aware, Justus Winter, 2014/11/27
- [PATCH hurd 17/30] pflocal: add payload-aware intrans functions, Justus Winter, 2014/11/27
- [PATCH hurd 19/30] startup: disable default payload to port mapping, Justus Winter, 2014/11/27
- [PATCH hurd 18/30] proc: add payload-aware intrans functions, Justus Winter, 2014/11/27
- [PATCH hurd 23/30] trans/password: add a payload-aware intrans function, Justus Winter, 2014/11/27
- [PATCH hurd 21/30] trans/fakeroot: make the demuxer payload-aware, Justus Winter, 2014/11/27
- [PATCH hurd 22/30] trans/ifsock: add a payload-aware intrans function, Justus Winter, 2014/11/27
- [PATCH hurd 20/30] term: add a payload-aware intrans function, Justus Winter, 2014/11/27
- [PATCH hurd 24/30] trans/streamio: make the translator payload-aware, Justus Winter, 2014/11/27
- [PATCH hurd 29/30] libports: Fix build, Justus Winter, 2014/11/27