BarryServer : Git

All the code for all my projects
// BarryServer : Git / Orion / blob / 1628fcfdfdf2978ed9ccac96ee7d13bb3dc43a01 / vfs / devfs / inode.c

// Related

Orion

Barry Importing existing Orion kernel d41a53c (2 years, 4 months ago)
/*
 * This file contains the functions dealing with DevFS inodes.  The VFS will
 * call these when it performs operations on DevFS Inodes, or is dealing with
 * the DevFS hierarchy.
 */

#include <string.h>
#include "fs.h"
#include "../vfs.h"
#include "../../mem/heap.h"

int devfs_create(Inode *inode, DirEntry *entry, mode_t mode);
Inode *devfs_lookup(Inode *inode, const char *name);
int devfs_mkdir(Inode *inode, DirEntry *entry, mode_t mode);
int devfs_rmdir(Inode *inode, DirEntry *entry);
int devfs_mknod(Inode *inode, DirEntry *entry, mode_t mode, dev_t dev);
int devfs_rename(Inode *si, DirEntry *sde, Inode *di, DirEntry *dde);

InodeOps devfsInodeOps = {
	.create = devfs_create,
	.lookup = devfs_lookup,
	.mkdir = devfs_mkdir,
	.rmdir = devfs_rmdir,
	.mknod = devfs_mknod,
	.rename = devfs_rename,
};

/* Create a file */
int
devfs_create(Inode *inode, DirEntry *entry, mode_t mode)
{
	return 0;
}


/* Look up a file */
Inode *
devfs_lookup(Inode *inode, const char *name)
{
	return NULL;
}

/* Make a directory */
int
devfs_mkdir(Inode *inode, DirEntry *entry, mode_t mode)
{
	return 0;
}

/* Remove a directory */
int
devfs_rmdir(Inode *inode, DirEntry *entry)
{
	return 0;
}

/* Make a node */
int
devfs_mknod(Inode *inode, DirEntry *entry, mode_t mode, dev_t dev)
{
	return 0;
}

/* Rename/mode a directory entry */
int
devfs_rename(Inode *si, DirEntry *sde, Inode *di, DirEntry *dde)
{
	return 0;
}