[PATCH 2.6.12-mm1] relayfs: add private data to channel struct

From: Tom Zanussi
Date: Wed Jun 22 2005 - 09:31:06 EST


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

Thanks,

Tom

Signed-off-by: Tom Zanussi <zanussi@xxxxxxxxxx>

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
--- linux-2.6.12-mm1/include/linux/relayfs_fs.h 2005-06-22 11:16:23.000000000 -0500
+++ linux-2.6.12-mm1-cur/include/linux/relayfs_fs.h 2005-06-22 11:39:12.000000000 -0500
@@ -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 */
};



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/