PatchworkOS  dbbdc99
A non-POSIX operating system.
Loading...
Searching...
No Matches
file.c File Reference
#include <kernel/fs/file.h>
#include <kernel/fs/dentry.h>
#include <kernel/fs/file_table.h>
#include <kernel/fs/mount.h>
#include <kernel/fs/path.h>
#include <kernel/fs/superblock.h>
#include <kernel/fs/vnode.h>
#include <kernel/io/irp.h>
#include <kernel/mem/cache.h>
#include <kernel/mem/mdl.h>
#include <kernel/proc/process.h>
#include <kernel/sync/mutex.h>
#include <kernel/utils/ref.h>
#include <errno.h>
#include <stdlib.h>
Include dependency graph for file.c:

Go to the source code of this file.

Functions

static void file_free (file_t *file)
 
file_tfile_new (const path_t *path, mode_t mode)
 Create a new file structure.
 
size_t file_generic_seek (file_t *file, ssize_t offset, seek_origin_t origin)
 Helper function for basic seeking.
 

Variables

static cache_t cache = CACHE_CREATE(cache, "file", sizeof(file_t), CACHE_LINE, NULL, NULL)
 

Function Documentation

◆ file_free()

static void file_free ( file_t file)
static

Definition at line 19 of file file.c.

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

Variable Documentation

◆ cache

cache_t cache = CACHE_CREATE(cache, "file", sizeof(file_t), CACHE_LINE, NULL, NULL)
static

Definition at line 38 of file file.c.