|
MentOS
0.8.0
The Mentoring Operating System
|
Contains callbacks for procfs system files. More...
Functions | |
| static ssize_t | procs_do_uptime (char *buffer, size_t bufsize) |
| Write the uptime inside the buffer. More... | |
| static ssize_t | procs_do_version (char *buffer, size_t bufsize) |
| Write the version inside the buffer. More... | |
| static ssize_t | procs_do_mounts (char *buffer, size_t bufsize) |
| Write the list of mount points inside the buffer. More... | |
| static ssize_t | procs_do_cpuinfo (char *buffer, size_t bufsize) |
| Write the cpu information inside the buffer. More... | |
| static ssize_t | procs_do_meminfo (char *buffer, size_t bufsize) |
| Write the memory information inside the buffer. More... | |
| static ssize_t | procs_do_stat (char *buffer, size_t bufsize) |
| Write the process statistics inside the buffer. More... | |
| static ssize_t | __procs_read (vfs_file_t *file, char *buf, off_t offset, size_t nbyte) |
| Read function for the proc system. More... | |
| int | procs_module_init (void) |
| Initialize the procfs system files. More... | |
Variables | |
| static vfs_sys_operations_t | procs_sys_operations |
| Filesystem general operations. More... | |
| static vfs_file_operations_t | procs_fs_operations |
| Filesystem file operations. More... | |
Contains callbacks for procfs system files.
|
static |
Read function for the proc system.
| file | The file. |
| buf | Buffer where the read content must be placed. |
| offset | Offset from which we start reading from the file. |
| nbyte | The number of bytes to read. |
Write the cpu information inside the buffer.
| buffer | the buffer. |
| bufsize | the buffer size. |
Write the memory information inside the buffer.
| buffer | the buffer. |
| bufsize | the buffer size. |
Write the list of mount points inside the buffer.
| buffer | the buffer. |
| bufsize | the buffer size. |
Write the process statistics inside the buffer.
| buffer | the buffer. |
| bufsize | the buffer size. |
Write the uptime inside the buffer.
| buffer | the buffer. |
| bufsize | the buffer size. |
Write the version inside the buffer.
| buffer | the buffer. |
| bufsize | the buffer size. |
| int procs_module_init | ( | void | ) |
Initialize the procfs system files.
|
static |
Filesystem file operations.