The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
procfs.h
Go to the documentation of this file.
1#pragma once
2
3/**
4 * @file procfs.h
5 * @brief a read-only view of kernel state, mounted at /proc.
6 *
7 * /proc/meminfo, /proc/uptime, /proc/<pid>/status and /proc/self (see
8 * procfs.c).
9 */
10
11#include "common/error.h"
12#include "kernel/fs/fs.h"
13
14/**
15 * set up procfs 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 procfs_mount(fs_mount_t *mount)
set up procfs on a mount.
Definition procfs.c:568