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

a read-only view of kernel state, mounted at /proc. More...

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

Go to the source code of this file.

Functions

kerr_t procfs_mount (fs_mount_t *mount)
 set up procfs on a mount.

Detailed Description

a read-only view of kernel state, mounted at /proc.

/proc/meminfo, /proc/uptime, /proc/<pid>/status and /proc/self (see procfs.c).

Function Documentation

◆ procfs_mount()

kerr_t procfs_mount ( fs_mount_t * mount)

set up procfs on a mount.

hand it to vfs_mount afterwards.

Parameters
mountfilesystem mount object to initialize.
Returns
KERR_OK.