summaryrefslogtreecommitdiff
path: root/dev.h
diff options
context:
space:
mode:
authorrsc <rsc>2007-08-28 17:49:49 +0000
committerrsc <rsc>2007-08-28 17:49:49 +0000
commitd844f0f9d955d9ddb2cb4cda1b0e544e7f9ed6ce (patch)
treedfb99c1e69fc384575852d3be10631889128028a /dev.h
parente3f271e88092683d1d1866ccffffce8528698f48 (diff)
downloadxv6-labs-d844f0f9d955d9ddb2cb4cda1b0e544e7f9ed6ce.tar.gz
xv6-labs-d844f0f9d955d9ddb2cb4cda1b0e544e7f9ed6ce.tar.bz2
xv6-labs-d844f0f9d955d9ddb2cb4cda1b0e544e7f9ed6ce.zip
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.
Diffstat (limited to 'dev.h')
-rw-r--r--dev.h4
1 files changed, 2 insertions, 2 deletions
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[];