As per my knowledge,
In Linux file system, for information communication between user space and kernel space, two kind of virtual file systems are used.
1) Proc file system http://www.tldp.org/LDP/Linux-Filesystem-Hierarchy/html/proc.html
2) sysfs file system https://en.wikipedia.org/wiki/Sysfs
In linux kernel code, i see some sub system has used proc
file to perform such userspace-kernelspace communication, and some system has used sysfs files for same concern.
So i just want to know, if i am going to write new linux kernel module or driver then how to choose virtual files ? when should i use sysfs
and when should i use proc
file?
Please let me know if i misunderstood anything here.