diff options
| author | klaar36 <klas.arvidsson@liu.se> | 2015-03-20 17:30:24 +0100 |
|---|---|---|
| committer | klaar36 <klas.arvidsson@liu.se> | 2015-03-20 17:30:24 +0100 |
| commit | e7bc50ca8ffcaa6ed68ebd2315f78b0f5a7d10ad (patch) | |
| tree | 4de97af7207676b69cb6a9aba8cb443cc134855d /src/filesys/inode.h | |
| parent | b0418a24e709f0632d2ede5b0f327c422931939b (diff) | |
| download | pintos-rs-e7bc50ca8ffcaa6ed68ebd2315f78b0f5a7d10ad.tar.gz | |
Initial Pintos
Diffstat (limited to 'src/filesys/inode.h')
| -rw-r--r-- | src/filesys/inode.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/filesys/inode.h b/src/filesys/inode.h new file mode 100644 index 0000000..ff3042e --- /dev/null +++ b/src/filesys/inode.h @@ -0,0 +1,22 @@ +#ifndef FILESYS_INODE_H +#define FILESYS_INODE_H + +#include <stdbool.h> +#include "filesys/off_t.h" +#include "devices/disk.h" + +struct bitmap; + + +void inode_init (void); +bool inode_create (disk_sector_t, off_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 *); +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); +off_t inode_length (const struct inode *); + +#endif /* filesys/inode.h */ |
