From d844f0f9d955d9ddb2cb4cda1b0e544e7f9ed6ce Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 28 Aug 2007 17:49:49 +0000 Subject: Change dev read/write functions 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. --- dev.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dev.h') diff --git a/dev.h b/dev.h index cff0036..48d31d3 100644 --- a/dev.h +++ b/dev.h @@ -1,6 +1,6 @@ struct devsw { - int (*read)(int, char*, int); - int (*write)(int, char*, int); + int (*read)(struct inode*, char*, int); + int (*write)(struct inode*, char*, int); }; extern struct devsw devsw[]; -- cgit v1.2.3