summaryrefslogtreecommitdiff
path: root/libnetfs/priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'libnetfs/priv.h')
-rw-r--r--libnetfs/priv.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libnetfs/priv.h b/libnetfs/priv.h
index ba310802..36c8f536 100644
--- a/libnetfs/priv.h
+++ b/libnetfs/priv.h
@@ -44,6 +44,12 @@ begin_using_control_port (fsys_t port)
return ports_lookup_port (netfs_port_bucket, port, netfs_control_class);
}
+static inline struct netfs_control * __attribute__ ((unused))
+begin_using_control_payload (unsigned long payload)
+{
+ return ports_lookup_payload (netfs_port_bucket, payload, netfs_control_class);
+}
+
static inline void __attribute__ ((unused))
end_using_control_port (struct netfs_control *cred)
{