[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 05/23] console: add a payload-aware intrans function
From: |
Justus Winter |
Subject: |
[PATCH 05/23] console: add a payload-aware intrans function |
Date: |
Fri, 29 Nov 2013 01:03:33 +0100 |
* console/priv.h (begin_using_protid_payload): New function.
* console/mutations.h: Add mutator.
---
console/mutations.h | 1 +
console/priv.h | 6 ++++++
2 files changed, 7 insertions(+)
diff --git a/console/mutations.h b/console/mutations.h
index 5f26672..26f9dc2 100644
--- a/console/mutations.h
+++ b/console/mutations.h
@@ -21,6 +21,7 @@
/* 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 "priv.h";
diff --git a/console/priv.h b/console/priv.h
index fdb96e7..f3044ca 100644
--- a/console/priv.h
+++ b/console/priv.h
@@ -32,6 +32,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)
{
--
1.7.10.4
- [PATCH] Drop the auto keyword, (continued)
- [PATCH] Drop the auto keyword, Justus Winter, 2013/11/28
- [PATCH 4/5] Clean up generated sources, Justus Winter, 2013/11/28
- [PATCH 2/5] Avoid a compiler warning in WriteDefines, Justus Winter, 2013/11/28
- [PATCH 3/5] Add inTransPayload, Justus Winter, 2013/11/28
- [PATCH 5/5] Use inTransPayload, Justus Winter, 2013/11/28
- [PATCH 01/23] trans: fix the receiver lookup in password, Justus Winter, 2013/11/28
- [PATCH 02/23] proc: fix the receiver lookup in S_proc_exception_raise, Justus Winter, 2013/11/28
- [PATCH 03/23] libports: add ports_lookup_payload, Justus Winter, 2013/11/28
- [PATCH 04/23] proc: add a payload-aware intrans function, Justus Winter, 2013/11/28
- [PATCH 05/23] console: add a payload-aware intrans function,
Justus Winter <=
- [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, 2013/11/28