PatchworkOS  19e446b
A non-POSIX operating system.
Loading...
Searching...
No Matches
vnode.c File Reference
#include <kernel/fs/vnode.h>
#include <kernel/fs/vfs.h>
#include <kernel/mem/cache.h>
#include <kernel/sched/clock.h>
#include <kernel/sched/thread.h>
#include <kernel/sched/timer.h>
#include <stdlib.h>
Include dependency graph for vnode.c:

Go to the source code of this file.

Functions

static void vnode_free (vnode_t *vnode)
 
static void vnode_ctor (void *ptr)
 
vnode_tvnode_new (superblock_t *superblock, vtype_t type, const vnode_ops_t *ops, const file_ops_t *fileOps)
 Create a new vnode.
 
void vnode_truncate (vnode_t *vnode)
 Truncate the vnode.
 

Variables

static cache_t cache = CACHE_CREATE(cache, "vnode", sizeof(vnode_t), CACHE_LINE, vnode_ctor, NULL)
 

Function Documentation

◆ vnode_free()

static void vnode_free ( vnode_t vnode)
static

Definition at line 11 of file vnode.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vnode_ctor()

static void vnode_ctor ( void *  ptr)
static

Definition at line 33 of file vnode.c.

Here is the call graph for this function:

Variable Documentation

◆ cache

cache_t cache = CACHE_CREATE(cache, "vnode", sizeof(vnode_t), CACHE_LINE, vnode_ctor, NULL)
static

Definition at line 49 of file vnode.c.