Linux Kernel C code to simulate userland writing / setting a value to /proc filesystem file [closed]
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 days ago . Improve this question What's the best way to simulate the same thing as a user doing an "echo a > /proc/file" But doing it from the KERNEL (2.6 in my case) even when the ROOT partition is unreachable. As far as I know the /proc file system is created by the kernel and resides in memory so it should