2006-08-09 18:04:04 +02:00
|
|
|
struct devsw {
|
|
|
|
int (*d_open)(char *, int);
|
2006-08-11 15:55:18 +02:00
|
|
|
int (*d_read)(int, char *, int);
|
|
|
|
int (*d_write)(int, char *, int);
|
2006-08-09 18:04:04 +02:00
|
|
|
int (*d_close)(int);
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct devsw devsw[];
|
|
|
|
|
|
|
|
#define CONSOLE 1
|