The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
tmpfs.h
Go to the documentation of this file.
1#pragma once
2
3/**
4 * @file tmpfs.h
5 * @brief a filesystem in kernel memory, mounted at /tmp.
6 *
7 * files and directories live on the kernel heap (8 MiB at most in all) and
8 * are lost at reboot. there is one tmpfs.
9 */
10
11#include "common/error.h"
12#include "kernel/fs/fs.h"
13
14/**
15 * set up the tmpfs (empty) on a mount. hand it to vfs_mount afterwards.
16 * @param mount filesystem mount object to initialize.
17 * @return KERR_OK.
18 */
kerr_t
unified kernel error codes.
Definition error.h:14
struct fs_mount fs_mount_t
filesystem operations vtable.
Definition ext2_ops.h:7
kerr_t tmpfs_mount(fs_mount_t *mount)
set up the tmpfs (empty) on a mount.
Definition tmpfs.c:847