MOS Source Code
|
#include "mos/filesystem/inode.h"
#include "mos/filesystem/page_cache.h"
#include "mos/filesystem/vfs_types.h"
#include "mos/mm/slab_autoinit.h"
#include "mos/syslog/printk.h"
#include <mos/lib/structures/hashmap_common.h>
#include <mos_stdlib.h>
Go to the source code of this file.
Functions | |
SLAB_AUTOINIT ("inode", inode_cache, inode_t) | |
static bool | vfs_generic_inode_drop (inode_t *inode) |
static bool | inode_try_drop (inode_t *inode) |
void | inode_init (inode_t *inode, superblock_t *sb, u64 ino, file_type_t type) |
inode_t * | inode_create (superblock_t *sb, u64 ino, file_type_t type) |
void | inode_ref (inode_t *inode) |
bool | inode_unref (inode_t *inode) |
bool | inode_unlink (inode_t *dir, dentry_t *dentry) |
Unlink a dentry from its parent inode. | |
Variables | |
slab_t * | inode_cache |
SLAB_AUTOINIT | ( | "inode" | , |
inode_cache | , | ||
inode_t | ) |
Definition at line 16 of file inode.c.
Referenced by inode_try_drop().
Definition at line 23 of file inode.c.
Referenced by inode_unlink(), and inode_unref().
void inode_init | ( | inode_t * | inode, |
superblock_t * | sb, | ||
u64 | ino, | ||
file_type_t | type ) |
Definition at line 49 of file inode.c.
Referenced by cpio_inode_trycreate(), inode_create(), and tmpfs_create_inode().
inode_t * inode_create | ( | superblock_t * | sb, |
u64 | ino, | ||
file_type_t | type ) |
Definition at line 65 of file inode.c.
Referenced by i_from_pbfull(), MOS_INIT(), sysfs_create_inode(), sysfs_do_register(), and sysfs_register_file().
Definition at line 72 of file inode.c.
Referenced by dentry_attach(), and dentry_ref().
Definition at line 78 of file inode.c.
Referenced by dentry_detach(), and dentry_unref_one_norelease().
Unlink a dentry from its parent inode.
dir | The parent inode |
dentry | The dentry to unlink |
Definition at line 86 of file inode.c.
Referenced by memfd_create(), and vfs_unlinkat().
slab_t* inode_cache |
Definition at line 13 of file inode.c.
Referenced by inode_create().