How do you access the contents of /proc programmatically?
read/select loop? Or am I too outdated?
cat, fopen, fread, fwrite, etc.
Right, so it's an API, but it's only usable through the file system, and it's a pretty bad API. You still need to parse the crappy ad hoc format instead of getting a struct from the kernel.
Re:Axle OS
by grepfru_it on Sunday May 21, 2023 @02:31PM
(#36023560)
Yep. So the trade off is then app compatibility or a radical new interface
PS /proc isn’t a file system, it is an api (that can be accessed by the file system)