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.
/proc, it says:Note, despite the wide use of the procfs, it is deprecated and should only be used to export information related to a process itself.. - Tsyvarevprocfsif you intend to transfer big bufferssysfsis not suitable as it only accepts at mostpage sizebuffer size. - stdcall