KFS
The Kernel File System (KFS) is another specialized file system similar to DevFS. Instead of giving access to drivers it gives access to internal kernel data. Typical data is memory use, network addressing etc.
The access attributes will tell if the data is read only, write only or both.
At the moment of writing, there are three directories available:
-
mem
: The memory subsystem. Contains data read byfree
: Memory capacity, memory in use etc. For systems with more than one type of memory, there will be one directory for each bank available. For single-pool systems there is only one,bank0
. -
enet
: The native networking stack ENet. Contains an entry with the current networking address of the device, and a directory for each networking interface. Data in this directory is parsed by theip
program. -
init
: Contains the path to the executable that will be run as the root process, should the current one exit. Writing to this variable and then exiting is a way to test using other programs as the root process instead of the defaultsh
. The full path name to the executable is required. -
mounts
: A text file where each line is a mounted file system. This file contains three columns. The first is the mounted device. Virtual file systems with no backing storage usually have this as the name of the filesystem. The second column is the mount point. The third column is the file system type, and the last column is a list of mount flags.