mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2.6.12-mm1] relayfs: add private data to channel struct
@ 2005-06-22 14:27 Tom Zanussi
  0 siblings, 0 replies; only message in thread
From: Tom Zanussi @ 2005-06-22 14:27 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

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@us.ibm.com>

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 */
 };
 



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-06-22 14:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-22 14:27 [PATCH 2.6.12-mm1] relayfs: add private data to channel struct Tom Zanussi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®