diff options
author | Pekka J Enberg <penberg@cs.Helsinki.FI> | 2006-04-11 08:21:59 -0400 |
---|---|---|
committer | Jens Axboe <axboe@suse.de> | 2006-04-11 08:21:59 -0400 |
commit | d1195c516a9acd767cb541f914be2c6ddcafcfc1 (patch) | |
tree | 1edb7afcdee207e34298ec72e0a89b0a66866b2b /Documentation | |
parent | 7519fdc90fe577cb966ab1ce2bf51ac639f05a0e (diff) |
[PATCH] vfs: add splice_write and splice_read to documentation
This patch adds the new splice_write and splice_read file operations to
Documentation/filesystems/vfs.txt.
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/filesystems/vfs.txt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Documentation/filesystems/vfs.txt b/Documentation/filesystems/vfs.txt index adaa899e5c90..3a2e5520c1e3 100644 --- a/Documentation/filesystems/vfs.txt +++ b/Documentation/filesystems/vfs.txt | |||
@@ -694,7 +694,7 @@ struct file_operations | |||
694 | ---------------------- | 694 | ---------------------- |
695 | 695 | ||
696 | This describes how the VFS can manipulate an open file. As of kernel | 696 | This describes how the VFS can manipulate an open file. As of kernel |
697 | 2.6.13, the following members are defined: | 697 | 2.6.17, the following members are defined: |
698 | 698 | ||
699 | struct file_operations { | 699 | struct file_operations { |
700 | loff_t (*llseek) (struct file *, loff_t, int); | 700 | loff_t (*llseek) (struct file *, loff_t, int); |
@@ -723,6 +723,10 @@ struct file_operations { | |||
723 | int (*check_flags)(int); | 723 | int (*check_flags)(int); |
724 | int (*dir_notify)(struct file *filp, unsigned long arg); | 724 | int (*dir_notify)(struct file *filp, unsigned long arg); |
725 | int (*flock) (struct file *, int, struct file_lock *); | 725 | int (*flock) (struct file *, int, struct file_lock *); |
726 | ssize_t (*splice_write)(struct pipe_inode_info *, struct file *, size_t, unsigned | ||
727 | int); | ||
728 | ssize_t (*splice_read)(struct file *, struct pipe_inode_info *, size_t, unsigned | ||
729 | int); | ||
726 | }; | 730 | }; |
727 | 731 | ||
728 | Again, all methods are called without any locks being held, unless | 732 | Again, all methods are called without any locks being held, unless |
@@ -790,6 +794,12 @@ otherwise noted. | |||
790 | 794 | ||
791 | flock: called by the flock(2) system call | 795 | flock: called by the flock(2) system call |
792 | 796 | ||
797 | splice_write: called by the VFS to splice data from a pipe to a file. This | ||
798 | method is used by the splice(2) system call | ||
799 | |||
800 | splice_read: called by the VFS to splice data from file to a pipe. This | ||
801 | method is used by the splice(2) system call | ||
802 | |||
793 | Note that the file operations are implemented by the specific | 803 | Note that the file operations are implemented by the specific |
794 | filesystem in which the inode resides. When opening a device node | 804 | filesystem in which the inode resides. When opening a device node |
795 | (character or block special) most filesystems will call special | 805 | (character or block special) most filesystems will call special |