Orion
Barry Importing existing Orion kernel d41a53c (3 years, 1 month ago)
/*
* This file contains the functions dealing with TmpFS inodes. The VFS will
* call these when it performs operations on TmpFS Inodes, or is dealing with
* the TmpFS hierarchy.
*/
#include <string.h>
#include "fs.h"
#include "../vfs.h"
#include "../../mem/heap.h"
int tmpfs_create(Inode *inode, DirEntry *entry, mode_t mode);
Inode *tmpfs_lookup(Inode *inode, const char *name);
int tmpfs_mkdir(Inode *inode, DirEntry *entry, mode_t mode);
int tmpfs_rmdir(Inode *inode, DirEntry *entry);
int tmpfs_mknod(Inode *inode, DirEntry *entry, mode_t mode, dev_t dev);
int tmpfs_rename(Inode *si, DirEntry *sde, Inode *di, DirEntry *dde);
InodeOps tmpfsInodeOps = {
.create = tmpfs_create,
.lookup = tmpfs_lookup,
.mkdir = tmpfs_mkdir,
.rmdir = tmpfs_rmdir,
.mknod = tmpfs_mknod,
.rename = tmpfs_rename,
};
/* Create a file */
int
tmpfs_create(Inode *inode, DirEntry *entry, mode_t mode)
{
return 0;
}
/* Look up a file */
Inode *
tmpfs_lookup(Inode *inode, const char *name)
{
return NULL;
}
/* Make a directory */
int
tmpfs_mkdir(Inode *inode, DirEntry *entry, mode_t mode)
{
return 0;
}
/* Remove a directory */
int
tmpfs_rmdir(Inode *inode, DirEntry *entry)
{
return 0;
}
/* Make a node */
int
tmpfs_mknod(Inode *inode, DirEntry *entry, mode_t mode, dev_t dev)
{
return 0;
}
/* Rename/mode a directory entry */
int
tmpfs_rename(Inode *si, DirEntry *sde, Inode *di, DirEntry *dde)
{
return 0;
}