Hi,
I'm currently working on an assignment; I have to develop an encryption kernel module. I have read The Linux Kernel Module Programming Guide, but now I've got more questions than I had before.
Before I read the article, I was under the impression that the kernel module uses the procfs to store data written to the /dev/<module name>
I was guessing that this special file was located somewhere in the /proc directory. I knew I was missing something when I couldn’t find it
Now I understand it to be merely a tool to communicate with the user space process. A quote from "The Linux Kernel Module Programming Guide"...
"Originally designed to allow easy access to information about processes (hence the name), it is now used by every bit of the kernel which has something interesting to report"
The reason for my confusion
I demo'ed my last assignment (I had used a linked list to store the data that was written to my device). I was told that I should use a procfs instead. (I'm pretty sure I was, but I didn't know it.)
My question is...
Is procfs merely a tool / interface between user space processes and my kernel module? i.e. Is it an interface whereby I can copy the read/written data to/from a buffer in my module?
If so, then I do have to define my own data structures?
Thank You, ANY input would be greatly appreciated.