xv6-cs450/dev.h

11 lines
191 B
C
Raw Normal View History

struct devsw {
int (*d_open)(char *, int);
int (*d_read)(int, void *, int);
int (*d_write)(int, void *, int);
int (*d_close)(int);
};
extern struct devsw devsw[];
#define CONSOLE 1