feat: Massive OS expansion with IPC, Sound & TTS, Block layer, FAT32/ext2/sysfs, Signals, Syscalls, Modules, Drivers & 50+ LazyBox applets

This commit is contained in:
subhobhai943 committed 2026-08-16 23:06:53 +05:30
1 parent 5662be29f5
commit d680335f05
64 files changed
+2370 -166

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
#include <fs/sysfs.h>
#include <fs/ramfs.h>
#include <kernel/printk.h>
void sysfs_init(void) {
vfs_mkdir("/sys", 0755);
vfs_mkdir("/sys/class", 0755);
vfs_mkdir("/sys/devices", 0755);
vfs_mkdir("/sys/bus", 0755);
vfs_mkdir("/sys/bus/pci", 0755);
vfs_mkdir("/sys/kernel", 0755);
vfs_node_t* sys_kernel = vfs_namei("/sys/kernel");
if (sys_kernel) {
ramfs_add_file(sys_kernel, "osrelease", "0.2.0-lts\n", 10);
ramfs_add_file(sys_kernel, "ostype", "SUB-OS\n", 7);
ramfs_add_file(sys_kernel, "hostname", "sub-node\n", 9);
}
printk(KERN_INFO "SYSFS: Mounted /sys kernel object hierarchy\n");
}