STB1019 / SkullOfSummer

Learn stuff with less 7-days
Apache License 2.0
5 stars 0 forks source link

indagare il link #24

Closed Koldar closed 6 years ago

Koldar commented 6 years ago

https://www.thegeekstuff.com/2012/04/create-proc-files/

Cercare di capire come creare un file in "/proc" in modo tale che il progetto della tastiera possa buttare su suddetto file in "/proc" le statistiche della tastiera stessa

lorenzonodari commented 6 years ago

The /proc folder is a pseudo-fs created by the Linux Kernel in order to create an interface between the kernel status and the user-space programs. You can see that, due to this reason, it is by default a read-only folder for everyone, root included. It contains only virtual files that contain informations about devices, statistics, etc.. Creating a new "file" in this folder is surely possible, but, as far as i know, only at kernel-level. This means one should create a kernel module in order to handle this kind of need. Thus, i think this task would be a little too hard for the purposes of the SoS, and a little out of scope.

Koldar commented 6 years ago

Yeah, totally a won't do :) thanks!