The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
tmpfs.h File Reference

a filesystem in kernel memory, mounted at /tmp. More...

#include "common/error.h"
#include "kernel/fs/fs.h"

Go to the source code of this file.

Functions

kerr_t tmpfs_mount (fs_mount_t *mount)
 set up the tmpfs (empty) on a mount.

Detailed Description

a filesystem in kernel memory, mounted at /tmp.

files and directories live on the kernel heap (8 MiB at most in all) and are lost at reboot. there is one tmpfs.

Function Documentation

◆ tmpfs_mount()

kerr_t tmpfs_mount ( fs_mount_t * mount)

set up the tmpfs (empty) on a mount.

hand it to vfs_mount afterwards.

Parameters
mountfilesystem mount object to initialize.
Returns
KERR_OK.