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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user