⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module sysfs

Module sysfs 

Source
Expand description

Virtual sysfs filesystem for VeridianOS.

Provides a Linux-compatible sysfs interface for kernel subsystem configuration and status. Virtual files under /sys/ expose kernel parameters to user-space tools and desktop environments (e.g., KDE PowerDevil reads /sys/power/state and /sys/class/backlight/).

Each sysfs node is a SysfsNode with read and/or write handlers. Nodes are registered at init time and looked up by path.

Modules§

power
Sysfs power virtual files for VeridianOS.

Structs§

SysfsNode
A virtual sysfs filesystem node.

Traits§

SysfsEntry
Trait for sysfs entry registration.

Functions§

list_nodes
List all registered sysfs nodes.
lookup
Look up a sysfs node by path.
register_node
Register a sysfs node.
sysfs_init
Initialize the sysfs subsystem and register all built-in nodes.
sysfs_read
Read a sysfs virtual file.
sysfs_write
Write to a sysfs virtual file.