maxdev1 / ghost

Ghost, a micro-kernel based hobby operating system.
http://ghostkernel.org/
GNU General Public License v3.0
559 stars 57 forks source link

ProcFS-like instead of `g_kernquery()` #35

Open MarcoCicognani opened 1 year ago

MarcoCicognani commented 1 year ago

Hi Max, instead of implement a custom syscall for obtaining info from the kernel, the kernel could expose a ProcFS-like filesystem where the files herein contains the desired information

MarcoCicognani commented 1 year ago

I've already written the previous comment into the last merged pr, but I moved here too in order to keep in mind

maxdev1 commented 1 year ago

I'm kind of indecisive on this, I somehow dislike misusing the file-system for it, but it is also a kind of clever solution. I think it should at least be all within some special kind of directory or something like that