|
ArvernOS
|
Functions | |
| int | proc_fs_init () |
| inode_t | proc_fs_create_readonly_file (const char *name, proc_read_t *read_fn) |
| size_t | proc_copy_out (char *buf, size_t size, uint64_t offset, const char *src, size_t len) |
| size_t proc_copy_out | ( | char * | buf, |
| size_t | size, | ||
| uint64_t | offset, | ||
| const char * | src, | ||
| size_t | len ) |
Copies a slice of the source string into the destination buffer.
The slice starts at offset. At most size - 1 bytes are copied and the result is always NUL-terminated. If offset is past the end of the source string, the destination buffer is set to an empty string.
| buf | destination buffer |
| size | size of the destination buffer in bytes |
| offset | byte offset into the source string |
| src | source string |
| len | length of the source string in bytes |
| inode_t proc_fs_create_readonly_file | ( | const char * | name, |
| proc_read_t * | read_fn ) |
| int proc_fs_init | ( | ) |
Initializes the "proc" file system.
The "proc" file system exposes kernel information using files.