Skip to content

Commit 5e9ba2a

Browse files
committed
Kernel: Rewrite ProcFS.
Now the filesystem is generated on-the-fly instead of manually adding and removing inodes as processes spawn and die. The code is convoluted and bloated as I wrote it while sleepless. However, it's still vastly better than the old ProcFS, so I'm committing it. I also added /proc/PID/fd/N symlinks for each of a process's open fd's.
1 parent ab56f36 commit 5e9ba2a

File tree

13 files changed

+1133
-468
lines changed

13 files changed

+1133
-468
lines changed

Kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ KERNEL_OBJS = \
1616
Console.o \
1717
IRQHandler.o \
1818
kprintf.o \
19-
ProcFileSystem.o \
19+
ProcFS.o \
2020
RTC.o \
2121
TTY.o \
2222
PTYMultiplexer.o \

Kernel/MemoryManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class MemoryManager {
201201
friend class PhysicalPage;
202202
friend class Region;
203203
friend class VMObject;
204-
friend ByteBuffer procfs$mm(SynthFSInode&);
204+
friend ByteBuffer procfs$mm(InodeIdentifier);
205205
public:
206206
static MemoryManager& the() PURE;
207207

0 commit comments

Comments
 (0)