public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] vfs: add splice_write and splice_read to documentation
@ 2006-04-11 11:03 Pekka J Enberg
  2006-04-11 11:15 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Pekka J Enberg @ 2006-04-11 11:03 UTC (permalink / raw)
  To: akpm; +Cc: axboe, linux-kernel

From: Pekka Enberg <penberg@cs.helsinki.fi>

This patch adds the new splice_write and splice_read file operations to
Documentation/filesystems/vfs.txt.

Cc: Jens Axboe <axboe@suse.de>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
---

 vfs.txt |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/Documentation/filesystems/vfs.txt b/Documentation/filesystems/vfs.txt
index adaa899..73a79c0 100644
--- a/Documentation/filesystems/vfs.txt
+++ b/Documentation/filesystems/vfs.txt
@@ -694,7 +694,7 @@ struct file_operations
 ----------------------
 
 This describes how the VFS can manipulate an open file. As of kernel
-2.6.13, the following members are defined:
+2.6.17, the following members are defined:
 
 struct file_operations {
 	loff_t (*llseek) (struct file *, loff_t, int);
@@ -723,6 +723,8 @@ struct file_operations {
 	int (*check_flags)(int);
 	int (*dir_notify)(struct file *filp, unsigned long arg);
 	int (*flock) (struct file *, int, struct file_lock *);
+	ssize_t (*splice_write)(struct inode *, struct file *, size_t, unsigned int);
+	ssize_t (*splice_read)(struct file *, struct inode *, size_t, unsigned int);
 };
 
 Again, all methods are called without any locks being held, unless
@@ -790,6 +792,12 @@ otherwise noted.
 
   flock: called by the flock(2) system call
 
+  splice_write: called by the VFS to splice data from a pipe to a file. This
+  	method is used by the splice(2) system call
+
+  splice_read: called by the VFS to splice data from file to a pipe. This
+  	method is used by the splice(2) system call
+
 Note that the file operations are implemented by the specific
 filesystem in which the inode resides. When opening a device node
 (character or block special) most filesystems will call special

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

* Re: [PATCH] vfs: add splice_write and splice_read to documentation
  2006-04-11 11:03 [PATCH] vfs: add splice_write and splice_read to documentation Pekka J Enberg
@ 2006-04-11 11:15 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2006-04-11 11:15 UTC (permalink / raw)
  To: Pekka J Enberg; +Cc: akpm, linux-kernel

On Tue, Apr 11 2006, Pekka J Enberg wrote:
> From: Pekka Enberg <penberg@cs.helsinki.fi>
> 
> This patch adds the new splice_write and splice_read file operations to
> Documentation/filesystems/vfs.txt.
> 
> Cc: Jens Axboe <axboe@suse.de>
> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>

Thanks, I'll add that to the splice branch since it wants updating for
the modified interface anyways.

-- 
Jens Axboe


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

end of thread, other threads:[~2006-04-11 11:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-11 11:03 [PATCH] vfs: add splice_write and splice_read to documentation Pekka J Enberg
2006-04-11 11:15 ` Jens Axboe

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