make vfs & filesystems use failable copying
[minix3.git] / servers / vfs / dmap.h
blobb4da8f31daed933be2753b6b8eaafe9f8fa781a8
1 #ifndef __VFS_DMAP_H__
2 #define __VFS_DMAP_H__
4 #include "threads.h"
6 /*===========================================================================*
7 * Device <-> Driver Table *
8 *===========================================================================*/
10 /* Device table. This table is indexed by major device number. It provides
11 * the link between major device numbers and the routines that process them.
12 * The table can be updated dynamically. The field 'dmap_flags' describe an
13 * entry's current status and determines what control options are possible.
16 extern struct dmap {
17 endpoint_t dmap_driver;
18 char dmap_label[LABEL_MAX];
19 int dmap_sel_busy;
20 struct filp *dmap_sel_filp;
21 thread_t dmap_servicing;
22 mutex_t dmap_lock;
23 int dmap_recovering;
24 int dmap_seen_tty;
25 } dmap[];
27 #endif