Writing into a file from device driver
Posted on 2006-11-22
I am writing a simple character device driver in C. I wanted to know if there is a way that I can open a text file and then read/write into it from within the driver.
To summarize, I want to:
1. open a text file from within device driver
2. write some debug data into the file
3. close the text file
I am new to linux kernel programming. Please let me know if there is a way to achieve the above tasks.