minor fixes for safecopy & safemap tests
[minix.git] / servers / vfs / dmap.h
blobe5455b6917d83319ce04067f0b40bb5237b46fcb
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 int(*dmap_opcl) (int, dev_t, int, int);
18 int(*dmap_io) (int, message *);
19 endpoint_t dmap_driver;
20 char dmap_label[LABEL_MAX];
21 int dmap_flags;
22 int dmap_style;
23 struct filp *dmap_sel_filp;
24 endpoint_t dmap_servicing;
25 mutex_t dmap_lock;
26 mutex_t *dmap_lock_ref;
27 int dmap_recovering;
28 } dmap[];
30 #endif