public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/12] relayfs: API additions and fixes
@ 2005-11-11 16:44 Tom Zanussi
  2005-11-11 16:46 ` [PATCH 1/12] relayfs: decouple buffer creation from inode creation Tom Zanussi
                   ` (11 more replies)
  0 siblings, 12 replies; 18+ messages in thread
From: Tom Zanussi @ 2005-11-11 16:44 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, karim

Hi,

This patch set is essentially the same as the set I previously posted,
but broken out into stepwise chunks.

The patches implement or fix 3 things that were specifically requested
or suggested by relayfs users:

- support for non-relay files (patches 1-6)

Currently, the relayfs API only supports the creation of directories
(relayfs_create_dir()) and relay files (relay_open()).  These patches
adds support for non-relay files (relayfs_create_file()).  This is so
relayfs applications can create 'control files' in relayfs itself
rather than in /proc or via a netlink channel, as is currently done in
the relay-app examples.  Basically what this amounts to is exporting
relayfs_create_file() with an additional file_ops param that clients
can use to supply file operations for their own special-purpose files
in relayfs.

- make exported relay file ops useful (patches 7-8)

The relayfs relay_file_operations have always been exported, the
intent being to make it possible to create relay files in other
filesystems such as debugfs.  The problem, though, is that currently
the file operations are too tightly coupled to relayfs to actually be
used for this purpose.  This patch fixes that by adding a couple of
callback functions that allow a client to hook into
relay_open()/close() and supply the files that will be used to
represent the channel buffers; the default implementation if no
callbacks are defined is to create the files in relayfs.

- add an option to create global relay buffer (patches 9-10)
    
The file creation callback also supplies an optional param, is_global,
that can be used by clients to create a single global relayfs buffer
instead of the default per-cpu buffers.  This was suggested as being
useful for certain debugging applications where it's more convenient
to be able to get all the data from a single channel without having to
go to the bother of dealing with per-cpu files.

- cleanup, some renaming and Documentation updates (patches 11-12)    

There were several comments that the use of netlink in the example
code was non-intuitive and in fact the whole relay-app business was
needlessly confusing.  Based on that feedback, the example code has
been completely converted over to relayfs control files as supported
by this patch, and have also been made completely self-contained.

The converted examples along with a couple of new examples that
demonstrate using exported relay files can be found in relay-apps
tarball:
    
http://prdownloads.sourceforge.net/relayfs/relay-apps-0.9.tar.gz?download

Tom



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2005-12-06 18:59 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-11 16:44 [PATCH 0/12] relayfs: API additions and fixes Tom Zanussi
2005-11-11 16:46 ` [PATCH 1/12] relayfs: decouple buffer creation from inode creation Tom Zanussi
2005-11-11 16:47 ` [PATCH 2/12] relayfs: export relayfs_create_file() with fileops param Tom Zanussi
2005-11-11 19:37   ` Christoph Hellwig
2005-11-11 19:49     ` Tom Zanussi
2005-12-06 17:29       ` Christoph Hellwig
2005-12-06 19:51         ` Tom Zanussi
2005-11-12  2:10     ` Baruch Even
2005-11-11 16:47 ` [PATCH 3/12] relayfs: add relayfs_remove_file() Tom Zanussi
2005-11-11 16:48 ` [PATCH 4/12] relayfs: use generic_ip for private data Tom Zanussi
2005-11-11 16:49 ` [PATCH 5/12] relayfs: remove unused alloc/destroy_inode() Tom Zanussi
2005-11-11 16:50 ` [PATCH 6/12] relayfs: add Documention for non-relay files Tom Zanussi
2005-11-11 16:51 ` [PATCH 7/12] relayfs: add support for relay files in other filesystems Tom Zanussi
2005-11-11 16:51 ` [PATCH 8/12] relayfs: add Documentation on " Tom Zanussi
2005-11-11 16:52 ` [PATCH 9/12] relayfs: add support for global relay buffers Tom Zanussi
2005-11-11 16:52 ` [PATCH 10/12] relayfs: add Documentation on " Tom Zanussi
2005-11-11 16:53 ` [PATCH 11/12] relayfs: cleanup, change relayfs_file_* to relay_file_* Tom Zanussi
2005-11-11 16:54 ` [PATCH 12/12] relayfs: Documentation cleanup, remove obsolete info Tom Zanussi

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