[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH hurd 12/30] console: add a payload-aware intrans function
From: |
Justus Winter |
Subject: |
[PATCH hurd 12/30] console: add a payload-aware intrans function |
Date: |
Thu, 27 Nov 2014 14:18:52 +0100 |
* console/priv.h (begin_using_protid_payload): New function.
* console/mutations.h: Add mutators.
---
console/mutations.h | 3 +++
libnetfs/priv.h | 6 ++++++
2 files changed, 9 insertions(+)
diff --git a/console/mutations.h b/console/mutations.h
index 4e1cc7e..87906cc 100644
--- a/console/mutations.h
+++ b/console/mutations.h
@@ -21,12 +21,15 @@
/* Only CPP macro definitions should go in this file. */
#define IO_INTRAN protid_t begin_using_protid_port (io_t)
+#define IO_INTRAN_PAYLOAD protid_t begin_using_protid_payload
#define IO_DESTRUCTOR end_using_protid_port (protid_t)
#define TIOCTL_IMPORTS import "libnetfs/priv.h";
#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 \
diff --git a/libnetfs/priv.h b/libnetfs/priv.h
index 36c8f53..3c5bcd4 100644
--- a/libnetfs/priv.h
+++ b/libnetfs/priv.h
@@ -31,6 +31,12 @@ begin_using_protid_port (file_t port)
return ports_lookup_port (netfs_port_bucket, port, netfs_protid_class);
}
+static inline struct protid * __attribute__ ((unused))
+begin_using_protid_payload (unsigned long payload)
+{
+ return ports_lookup_payload (netfs_port_bucket, payload, netfs_protid_class);
+}
+
static inline void __attribute__ ((unused))
end_using_protid_port (struct protid *cred)
{
--
2.1.3
- Re: [PATCH hurd 02/30] include: force all refcount functions to be inlined, (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 <=
[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, 2014/11/27
[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