PatchworkOS  966e257
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/inode.h>
#include <kernel/fs/mount.h>
#include <kernel/fs/path.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.
 
uint64_t file_generic_seek (file_t *file, int64_t offset, seek_origin_t origin)
 Helper function for basic seeking.
 

Function Documentation

◆ file_free()

static void file_free ( file_t file)
static

Definition at line 13 of file file.c.

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