xv6-cs450/dev.h
rtm 17a856577f init creates console, opens 0/1/2, runs sh
sh accepts 0-argument commands (like userfs)
reads from console
2006-08-11 13:55:18 +00:00

10 lines
191 B
C

struct devsw {
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