title: How to write to a /proc kernel module
body: <p>How can I get data when a user writes to proc? (Ie: echo "foo" > /proc/myproc)</p>
  
  <p>I've seen reading from proc (ie user does a "cat /proc/myproc") as detailed from this site: <a href="http://www.linux.com/learn/linux-training/39972-kernel-debugging-with-proc-qsequenceq-files-part-2-of-3" rel="nofollow">http://www.linux.com/learn/linux-training/39972-kernel-debugging-with-proc-qsequenceq-files-part-2-of-3</a></p>
  
  <p>That seems to work well enough, but I haven't seen the analogous method for writing. Also, I have checked out TLDP, but their article seems way out of date: <a href="http://tldp.org/LDP/lkmpg/2.6/html/x769.html" rel="nofollow">http://tldp.org/LDP/lkmpg/2.6/html/x769.html</a> </p>