Skip to contentSkip to conversation

relayfs: add private data to channel struct

PATCH New Tom Zanussi 1 participant 1 message Jun 22, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 relayfs: add private data to channel struct

This patch adds a field for clients to use as they wish, as suggested by Mathieu Desnoyers.

Thanks,

Tom

include/linux/relayfs_fs.h +1 -0
diff -urpN -X dontdiff linux-2.6.12-mm1/include/linux/relayfs_fs.h linux-2.6.12-mm1-cur/include/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 */
 };