d844f0f9d9
to take inode* instead of minor number. Unlock console inode during console_read and console_write. Otherwise background processes cannot write to console while the shell is reading it waiting for input.
8 lines
152 B
C
8 lines
152 B
C
struct devsw {
|
|
int (*read)(struct inode*, char*, int);
|
|
int (*write)(struct inode*, char*, int);
|
|
};
|
|
|
|
extern struct devsw devsw[];
|
|
|
|
#define CONSOLE 1
|