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

SysfsEntry

Trait SysfsEntry 

Source
pub trait SysfsEntry {
    // Required methods
    fn path(&self) -> &str;
    fn read(&self) -> KernelResult<String>;
    fn write(&self, value: &str) -> KernelResult<()>;
}
Expand description

Trait for sysfs entry registration.

Required Methods§

Source

fn path(&self) -> &str

Returns the path of this sysfs entry.

Source

fn read(&self) -> KernelResult<String>

Read the sysfs entry value.

Source

fn write(&self, value: &str) -> KernelResult<()>

Write a value to the sysfs entry.

Implementors§