title: Linux - Programmatically write to a proc file
body: <p>I have found several examples online where we can create a proc file, assign read and write methods that are called every time the proc file is opened for read or written to.</p>
  
  <p>However, I can't seem to find any documentation on how to programatically write to a proc file. Ideally, I would like to add a timestamp with other user details every time the proc file is opened for read or for write. Again, I've found where I can add the read and write functions that are triggered when the proc file is opened, but I can't find documentation on how to actually write to a proc file programatically. This would be different from a regular IO read/write, correct?</p>