|
PatchworkOS
|
#include <kernel/fs/file.h>#include <kernel/fs/dentry.h>#include <kernel/fs/inode.h>#include <kernel/fs/path.h>#include <kernel/sync/mutex.h>#include <kernel/utils/ref.h>#include <errno.h>#include <stdlib.h>Go to the source code of this file.
Functions | |
| static void | file_free (file_t *file) |
| file_t * | file_new (inode_t *inode, const path_t *path, path_flags_t flags) |
| 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. | |
|
static |
Definition at line 12 of file file.c.
References DEREF, file, free(), dentry_t::inode, NULL, dentry_t::ops, and path_put().
Referenced by file_new().