diff options
| author | manuel <manuel@mausz.at> | 2012-03-27 11:51:08 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2012-03-27 11:51:08 +0200 |
| commit | 4f670845ff9ab6c48bcb5f7bf4d4ef6dc3c3064b (patch) | |
| tree | 868c52e06f207b5ec8a3cc141f4b8b2bdfcc165c /filesys/inode.h | |
| parent | eae0bd57f0a26314a94785061888d193d186944a (diff) | |
| download | progos-4f670845ff9ab6c48bcb5f7bf4d4ef6dc3c3064b.tar.gz progos-4f670845ff9ab6c48bcb5f7bf4d4ef6dc3c3064b.tar.bz2 progos-4f670845ff9ab6c48bcb5f7bf4d4ef6dc3c3064b.zip | |
reorganize file structure to match the upstream requirements
Diffstat (limited to 'filesys/inode.h')
| -rw-r--r-- | filesys/inode.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/filesys/inode.h b/filesys/inode.h new file mode 100644 index 0000000..cb42310 --- /dev/null +++ b/filesys/inode.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | #ifndef FILESYS_INODE_H | ||
| 2 | #define FILESYS_INODE_H | ||
| 3 | |||
| 4 | #include <stdbool.h> | ||
| 5 | #include "filesys/off_t.h" | ||
| 6 | #include "devices/block.h" | ||
| 7 | |||
| 8 | struct bitmap; | ||
| 9 | |||
| 10 | void inode_init (void); | ||
| 11 | bool inode_create (block_sector_t, off_t); | ||
| 12 | struct inode *inode_open (block_sector_t); | ||
| 13 | struct inode *inode_reopen (struct inode *); | ||
| 14 | block_sector_t inode_get_inumber (const struct inode *); | ||
| 15 | void inode_close (struct inode *); | ||
| 16 | void inode_remove (struct inode *); | ||
| 17 | off_t inode_read_at (struct inode *, void *, off_t size, off_t offset); | ||
| 18 | off_t inode_write_at (struct inode *, const void *, off_t size, off_t offset); | ||
| 19 | void inode_deny_write (struct inode *); | ||
| 20 | void inode_allow_write (struct inode *); | ||
| 21 | off_t inode_length (const struct inode *); | ||
| 22 | |||
| 23 | #endif /* filesys/inode.h */ | ||
