xv6/dev.h

11 lines
188 B
C
Raw Normal View History

struct devsw {
2006-09-06 17:27:19 +00:00
int (*d_open)(char*, int);
int (*d_read)(int, char*, int);
int (*d_write)(int, char*, int);
int (*d_close)(int);
};
extern struct devsw devsw[];
#define CONSOLE 1