Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Filesystems

This document describes the filesystem subsystem of the Kyronix kernel. It is the child of Kernel and parent of filesystem component documents.

Components

ComponentSourceDescription
VFSfs/vfs.cVirtual Filesystem Switch layer
ext2fs/ext2.cext2/3 filesystem driver
FAT32fs/fat32.cFAT32 filesystem driver
procfsfs/procfs.cProcess information filesystem (/proc)
devfsfs/devfs.cDevice filesystem (/dev)
eventfdfs/eventfd.cEvent file descriptor
pipefs/pipe.cAnonymous pipes
CPIOfs/cpio.cCPIO archive loader (initrd)
fstabfs/fstab.c/etc/fstab parser
Unix socketfs/unix_socket.cUnix domain sockets
Inet socketfs/inet_socket.cInternet domain sockets (lwIP)

Mount Points

The kernel mounts the following filesystems at boot:

MountSourceDescription
/procprocfsProcess information
/sysdevfsSystem/device nodes
/dev/ptsdevfsPseudo-terminal devices
/ext2 or initrdRoot filesystem

File Descriptor Operations

The VFS layer provides the following operations on file descriptors:

OperationFunction
Readfd_read()
Writefd_write()
Seekfd_lseek()
Closefd_close()
Statfd_stat() / fd_fstat()
Dupfd_dup() / fd_dup2() / fd_dup3()
Pollfd_pollin() / fd_pollout() / fd_pollhup()
Ioctlfd_ioctl()
Getdentsfd_getdents64()

Last reviewed: 2026-07-22