The manual
ginnOS
The reference: libc, the libraries and the kernel
Toggle main menu visibility
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
*/
19
kerr_t
tmpfs_mount
(
fs_mount_t
*mount);
error.h
kerr_t
kerr_t
unified kernel error codes.
Definition
error.h:14
fs_mount_t
struct fs_mount fs_mount_t
filesystem operations vtable.
Definition
ext2_ops.h:7
fs.h
tmpfs_mount
kerr_t tmpfs_mount(fs_mount_t *mount)
set up the tmpfs (empty) on a mount.
Definition
tmpfs.c:847
src
kernel
fs
tmpfs.h
Generated by
1.18.0