support read() and write() bigger than one page

This commit is contained in:
Robert Morris 2019-06-04 05:57:47 -04:00
parent cefe223bf5
commit 8baac76050
12 changed files with 95 additions and 62 deletions

4
file.h
View file

@ -28,8 +28,8 @@ struct inode {
// table mapping major device number to
// device functions
struct devsw {
int (*read)(struct inode*, char*, int);
int (*write)(struct inode*, char*, int);
int (*read)(struct inode*, int, uint64, int);
int (*write)(struct inode*, int, uint64, int);
};
extern struct devsw devsw[];