Added kernel private node_monitor.h header.

Moved definition of "struct io_context" from fd.h to vfs.h.
Introduced new fs/ directory; some cleanups to come.
Added node monitor syscalls.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2479 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2003-01-18 14:04:22 +00:00
parent fc3cda204e
commit f9bdcca59c
5 changed files with 58 additions and 16 deletions
+1 -14
View File
@@ -10,22 +10,9 @@
#include <atomic.h>
#include <memheap.h>
#include <sys/stat.h>
//#include <list.h>
struct file_descriptor;
struct select_sync;
struct fs_mount;
struct vnode;
/** The I/O context of a process/team, holds the fd array */
struct io_context {
struct vnode *cwd;
mutex io_mutex;
int table_size;
int num_used_fds;
struct file_descriptor **fds;
};
struct fd_ops {
ssize_t (*fd_read) (struct file_descriptor *, off_t pos, void *buffer, size_t *length);
ssize_t (*fd_write)(struct file_descriptor *, off_t pos, const void *buffer, size_t *length);