Linux driver development procfs or dev file?
Something bother me all the time while learning about linux kernel.
I have done some example tryout on /dev type of file vs /procfs.
Currently from my point of view seem like /procfs is more easy to use/implement.
There no need to "mknod" or assign major dev number. I love the idea it is dynamically assigned.
With seeing some of the tutorials, I didn't find where it is mention how the mknod is automated for devices.
I have been bothered by this should I be using /dev or /procfs types?
What any specification that dictate which must we use?
My project, I'm doing some data buffering driver from devices to application layer.
There also a SPI comm beside the data buffering port(almost similar to the video streaming ports).
But how does a SPI+/dev or SPI+/proc types? or can we combine that in the single driver file?