Orion
Barry Importing existing Orion kernel d41a53c (2 years, 4 months ago)diff --git a/vfs/cache.h b/vfs/cache.h new file mode 100644 index 0000000..158d2ab --- /dev/null +++ b/vfs/cache.h @@ -0,0 +1,22 @@ +#ifndef KERNEL_VFS_CACHE_H +#define KERNEL_VFS_CACHE_H + +#include "vfs.h" + +void cache_reaper(void); + +DirEntry *entry_get(DirEntry *entry); +void entry_put(DirEntry *entry); +DirEntry *entry_find(Inode *inode, const char *name); +void entry_add(Inode *inode, DirEntry *insert); +void entry_remove(Inode *inode, const char *name); +void entry_clean(Inode *inode); + +Page *page_get(Page *page); +Page *page_find(Inode *inode, off_t offset); +void page_add(Inode *inode, Page *page); +Page *page_create(Inode *inode, page_t frame, off_t offset); +void page_remove(Inode *inode, Page *page); +void page_clean(Inode *inode); + +#endif