summaryrefslogtreecommitdiffstats
path: root/runtime/relayfs/linux/relayfs_fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/relayfs/linux/relayfs_fs.h')
-rw-r--r--runtime/relayfs/linux/relayfs_fs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/relayfs/linux/relayfs_fs.h b/runtime/relayfs/linux/relayfs_fs.h
index 1f697c3b..2d270a3f 100644
--- a/runtime/relayfs/linux/relayfs_fs.h
+++ b/runtime/relayfs/linux/relayfs_fs.h
@@ -59,6 +59,7 @@ struct rchan
int overwrite; /* overwrite buffer when full? */
struct rchan_callbacks *cb; /* client callbacks */
struct kref kref; /* channel refcount */
+ void *private_data; /* for user-defined data */
struct rchan_buf *buf[NR_CPUS]; /* per-cpu channel buffers */
};
@@ -88,6 +89,9 @@ struct rchan_callbacks
* @prev_subbuf_idx: the previous sub-buffer's index
* @prev_subbuf: the start of the previous sub-buffer
*
+ * The client should return the number of bytes it reserves at
+ * the beginning of the sub-buffer, 0 if none.
+ *
* NOTE: subbuf_start will also be invoked when the buffer is
* created, so that the first sub-buffer can be initialized
* if necessary. In this case, prev_subbuf will be NULL.