proc(7) - SerenityOS man pages

Name

proc - SerenityOS ProcFS

Description

The kernel can expose process related information in /proc. This functionality is used by various userland programs. Most of the output layout in the ProcFS nodes is JSON.

Global entries

net directory

sys directory

This subdirectoy includes global settings of the kernel.

Per process entries

Consistency and stability of data across multiple read operations

When opening a data node, the kernel generates the required data so it's prepared for read operation when requested to. However, in order to ensure that multiple reads will not create a corrupted data from that data node, a read operation alone will not inquire the kernel to refresh the data. To keep data output being refreshed, the userland has to re-open the data node with a new file descriptor, or to perform the lseek syscall on the open file descriptor to reset the the offset to 0.

See also