]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] relayfs: export relayfs_create_file() with fileops param
authorTom Zanussi <zanussi@us.ibm.com>
Sun, 8 Jan 2006 09:02:24 +0000 (01:02 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 9 Jan 2006 04:13:49 +0000 (20:13 -0800)
commit907f2c77d1653ce235e8e1fd6ce5c46005814e78
treedddb1fb14c4be54b066585235c97a36460e8faff
parent6625b861f8f0e429902b8671b3e70792cd99074e
[PATCH] relayfs: export relayfs_create_file() with fileops param

This patch adds a mandatory fileops param to relayfs_create_file() and exports
that function so that clients can use it to create files defined by their own
set of file operations, in relayfs.  The purpose is to allow relayfs
applications to create their own set of 'control' files alongside their relay
files in relayfs rather than having to create them in /proc or debugfs for
instance.  relayfs_create_file() is also used by relay_open_buf() to create
the relay files for a channel.  In this case, a pointer to
relayfs_file_operations is passed in, along with a pointer to the buffer
associated with the file.

Signed-off-by: Tom Zanussi <zanussi@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/relayfs/inode.c
fs/relayfs/relay.c
fs/relayfs/relay.h
include/linux/relayfs_fs.h