summaryrefslogtreecommitdiff
path: root/libnetfs
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2013-11-28 10:40:56 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-12-07 15:38:18 +0100
commit4191267e600e4ff1d54cf42baa2b3a0c9a842844 (patch)
treec950c9a5adc1edd58bbb9fd6aa704c52d04c0038 /libnetfs
parentedfeb493f9d95e64b747a11abb528d81da47b16a (diff)
console: add a payload-aware intrans function
* console/priv.h (begin_using_protid_payload): New function. * console/mutations.h: Add mutators.
Diffstat (limited to 'libnetfs')
-rw-r--r--libnetfs/priv.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libnetfs/priv.h b/libnetfs/priv.h
index 36c8f536..3c5bcd4f 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)
{