[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH hurd 10/30] libcons: add a payload-aware intrans function
From: |
Justus Winter |
Subject: |
[PATCH hurd 10/30] libcons: add a payload-aware intrans function |
Date: |
Thu, 27 Nov 2014 14:18:50 +0100 |
* libcons/mutations.h: Add mutator.
* libcons/priv.h (begin_using_notify_payload): New function.
---
libcons/mutations.h | 1 +
libcons/priv.h | 6 ++++++
2 files changed, 7 insertions(+)
diff --git a/libcons/mutations.h b/libcons/mutations.h
index c895447..4751340 100644
--- a/libcons/mutations.h
+++ b/libcons/mutations.h
@@ -21,6 +21,7 @@
/* Only CPP macro definitions should go in this file. */
#define FS_NOTIFY_INTRAN cons_notify_t begin_using_notify_port (fs_notify_t)
+#define FS_NOTIFY_INTRAN_PAYLOAD cons_notify_t begin_using_notify_payload
#define FS_NOTIFY_DESTRUCTOR end_using_notify_port (cons_notify_t)
#define FS_NOTIFY_IMPORTS import "priv.h";
diff --git a/libcons/priv.h b/libcons/priv.h
index 38971ff..6cdf3db 100644
--- a/libcons/priv.h
+++ b/libcons/priv.h
@@ -80,6 +80,12 @@ begin_using_notify_port (fs_notify_t port)
return ports_lookup_port (cons_port_bucket, port, cons_port_class);
}
+static inline cons_notify_t
+begin_using_notify_payload (unsigned long payload)
+{
+ return ports_lookup_payload (cons_port_bucket, payload, cons_port_class);
+}
+
/* Called by MiG after server routines have been run; this balances
begin_using_notify_port, and is arranged for the fs_notify
interfaces by mutations.h. */
--
2.1.3
- [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 <=
[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, 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