support read() and write() bigger than one page
This commit is contained in:
parent
cefe223bf5
commit
8baac76050
12 changed files with 95 additions and 62 deletions
4
file.h
4
file.h
|
@ -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[];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue