projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for "keyboard" input over the serial port.
[pintos-anon]
/
src
/
filesys
/
inode.h
diff --git
a/src/filesys/inode.h
b/src/filesys/inode.h
index 296ffd1633a4a8257c7da8dc3fe49ae5f87eb896..be7df634ef499bf83390647d75a92edb4532ecc8 100644
(file)
--- a/
src/filesys/inode.h
+++ b/
src/filesys/inode.h
@@
-8,12
+8,16
@@
struct bitmap;
void inode_init (void);
struct bitmap;
void inode_init (void);
-bool inode_create (
struct bitmap *,
disk_sector_t, off_t);
+bool inode_create (disk_sector_t, off_t);
struct inode *inode_open (disk_sector_t);
struct inode *inode_open (disk_sector_t);
+struct inode *inode_reopen (struct inode *);
+disk_sector_t inode_get_inumber (const struct inode *);
void inode_close (struct inode *);
void inode_remove (struct inode *);
void inode_close (struct inode *);
void inode_remove (struct inode *);
-disk_sector_t inode_byte_to_sector (const struct inode *, off_t);
+off_t inode_read_at (struct inode *, void *, off_t size, off_t offset);
+off_t inode_write_at (struct inode *, const void *, off_t size, off_t offset);
+void inode_deny_write (struct inode *);
+void inode_allow_write (struct inode *);
off_t inode_length (const struct inode *);
off_t inode_length (const struct inode *);
-void inode_print (const struct inode *);
#endif /* filesys/inode.h */
#endif /* filesys/inode.h */