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
+22 -2
View File
@@ -13,19 +13,39 @@
#include <signal.h>
#include <dirent.h>
#include <fs_interface.h>
#include <lock.h>
#include <list.h>
#define DEFAULT_FD_TABLE_SIZE 128
#define MAX_FD_TABLE_SIZE 2048
#define MAX_NODE_MONITORS 4096
#include <vfs_types.h>
struct file_descriptor;
struct selectsync;
struct pollfd;
/** The I/O context of a process/team, holds the fd array among others */
typedef struct io_context {
struct vnode *cwd;
mutex io_mutex;
uint32 table_size;
uint32 num_used_fds;
struct file_descriptor **fds;
struct list node_monitors;
uint32 num_monitors;
uint32 max_monitors;
} io_context;
/* macro to allocate a iovec array on the stack */
#define IOVECS(name, size) \
uint8 _##name[sizeof(iovecs) + (size)*sizeof(iovec)]; \
iovecs *name = (iovecs *)_##name
struct selectsync;
struct pollfd;
#ifdef __cplusplus
extern "C" {