xv6-65oo2/dev.h
2006-09-07 13:08:23 +00:00

9 lines
132 B
C

struct devsw {
int (*read)(int, char*, int);
int (*write)(int, char*, int);
};
extern struct devsw devsw[];
#define CONSOLE 1