I want to make a kernel module that writes to a file called /proc/myfile. For now I just want to write "hello" or some other junk in order to test it. What are the recommended functions to do this? From what I have gathered so far, it looks like I should call filp_open() followed by vfs_write().
Thank you.
Edit: Read/write files within a Linux kernel module answers my question.