Commit | Line | Data |
---|---|---|
667c50a7 RE |
1 | /* confxx.c 4.1 82/07/19 */ |
2 | ||
3 | #include "../h/param.h" | |
4 | #include "../h/inode.h" | |
5 | #include "../h/pte.h" | |
6 | #include "../h/fs.h" | |
7 | #include "saio.h" | |
8 | ||
9 | devread(io) | |
10 | register struct iob *io; | |
11 | { | |
12 | ||
13 | return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, READ) ); | |
14 | } | |
15 | ||
16 | devwrite(io) | |
17 | register struct iob *io; | |
18 | { | |
19 | ||
20 | return( (*devsw[io->i_ino.i_dev].dv_strategy)(io, WRITE) ); | |
21 | } | |
22 | ||
23 | devopen(io) | |
24 | register struct iob *io; | |
25 | { | |
26 | ||
27 | (*devsw[io->i_ino.i_dev].dv_open)(io); | |
28 | } | |
29 | ||
30 | devclose(io) | |
31 | register struct iob *io; | |
32 | { | |
33 | ||
34 | (*devsw[io->i_ino.i_dev].dv_close)(io); | |
35 | } | |
36 | ||
37 | nullsys() | |
38 | { | |
39 | ||
40 | ; | |
41 | } | |
42 | ||
43 | int nullsys(); | |
44 | int xxstrategy(), xxopen(); | |
45 | ||
46 | struct devsw devsw[] = { | |
47 | "XX", xxstrategy, xxopen, nullsys, | |
48 | 0,0,0,0 | |
49 | }; |