xref: /minix/minix/servers/vfs/dmap.h (revision 7f5f010b)
1 #ifndef __VFS_DMAP_H__
2 #define __VFS_DMAP_H__
3 
4 #include "threads.h"
5 
6 /*===========================================================================*
7  *               	 Device <-> Driver Table  			     *
8  *===========================================================================*/
9 
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.
14  */
15 
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[];
26 
27 #endif
28