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