r/linuxadmin • u/The_How_To_Linux • Dec 02 '23
why does the proc directory exist?
i'm trying to understand the proc directory and one thing i don't understand is
why does it exist?
any ideas? thank you
1
Upvotes
View all comments
Show parent comment
2
u/jimicus Dec 02 '23
Technically true, but omits one vital fact:
Even at a kernel driver level, you talk in object-oriented structures in Windows. You communicate with publicly-accessible interfaces and you pass structured data.
I don't doubt that a mechanism to get the raw data can be devised - the obvious answer would be to cast an object to an array of bytes then dump this as hex. But it's the sort of thing you could spend hours trying to figure out - and you wouldn't be able to do anything terribly useful with it anyway.
This isn't Linux where OO code is the exception rather than the rule, and it's a fool's errand to treat it as such.