Orion
Barry Importing existing Orion kernel d41a53c (2 years, 4 months ago)diff --git a/vfs/inode.h b/vfs/inode.h new file mode 100644 index 0000000..adf5b3b --- /dev/null +++ b/vfs/inode.h @@ -0,0 +1,15 @@ +#ifndef KERNEL_VFS_INODE_H +#define KERNEL_VFS_INODE_H + +#include "vfs.h" + +Inode *inode_get(Inode *inode); +void inode_put(Inode *inode); +int inode_create(Inode *inode, DirEntry *entry, mode_t mode); +DirEntry *inode_lookup(Inode *inode, const char *name); +int inode_mkdir(Inode *inode, DirEntry *entry, mode_t mode); +int inode_rmdir(Inode *inode, DirEntry *entry); +int inode_mknod(Inode *inode, DirEntry *entry, mode_t mode, dev_t dev); +int inode_rename(Inode *si, DirEntry *sde, Inode *di, DirEntry *dde); + +#endif