summaryrefslogtreecommitdiffstats
path: root/filesys/inode.h
diff options
context:
space:
mode:
Diffstat (limited to 'filesys/inode.h')
-rw-r--r--filesys/inode.h23
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
8struct bitmap;
9
10void inode_init (void);
11bool inode_create (block_sector_t, off_t);
12struct inode *inode_open (block_sector_t);
13struct inode *inode_reopen (struct inode *);
14block_sector_t inode_get_inumber (const struct inode *);
15void inode_close (struct inode *);
16void inode_remove (struct inode *);
17off_t inode_read_at (struct inode *, void *, off_t size, off_t offset);
18off_t inode_write_at (struct inode *, const void *, off_t size, off_t offset);
19void inode_deny_write (struct inode *);
20void inode_allow_write (struct inode *);
21off_t inode_length (const struct inode *);
22
23#endif /* filesys/inode.h */