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

devfs

This document describes the devfs filesystem in the Kyronix kernel. It is the child of Filesystems.

Source

kernel/fs/devfs.c

Overview

devfs is an in-memory filesystem mounted at /dev that provides device nodes. It dynamically creates entries for registered character and block devices.

Mount Points

MountDescription
/devDevice nodes
/sysSystem information
/dev/ptsPseudo-terminal devices

Device Registration

Drivers register device nodes via devfs_register():

DevicePathDescription
Framebuffer/dev/fb0Linear framebuffer device
Input event 0/dev/input/event0Keyboard input
Input event 1/dev/input/event1Mouse input
AHCI disk/dev/ahci0SATA/AHCI block device

Device Types

TypeDescription
VFS_TYPE_DEVCharacter device
VFS_TYPE_BLKBlock device

Last reviewed: 2026-07-22