patch-2.4.4 linux/include/linux/pipe_fs_i.h
Next file: linux/include/linux/ppp_channel.h
Previous file: linux/include/linux/pci_ids.h
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Wed Apr 25 14:18:23 2001
- Orig file:
v2.4.3/linux/include/linux/pipe_fs_i.h
- Orig date:
Mon May 8 11:17:47 2000
diff -u --recursive --new-file v2.4.3/linux/include/linux/pipe_fs_i.h linux/include/linux/pipe_fs_i.h
@@ -5,6 +5,7 @@
struct pipe_inode_info {
wait_queue_head_t wait;
char *base;
+ unsigned int len;
unsigned int start;
unsigned int readers;
unsigned int writers;
@@ -22,7 +23,7 @@
#define PIPE_WAIT(inode) (&(inode).i_pipe->wait)
#define PIPE_BASE(inode) ((inode).i_pipe->base)
#define PIPE_START(inode) ((inode).i_pipe->start)
-#define PIPE_LEN(inode) ((inode).i_size)
+#define PIPE_LEN(inode) ((inode).i_pipe->len)
#define PIPE_READERS(inode) ((inode).i_pipe->readers)
#define PIPE_WRITERS(inode) ((inode).i_pipe->writers)
#define PIPE_WAITING_READERS(inode) ((inode).i_pipe->waiting_readers)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)