title: When to use /proc and when /dev
body: <p>I need to write a kernel module that is not a device driver. That module will be communicating with some user space processes. As I dont want to use ioctl(), I am left with either creating a file in /proc directory or creating a device file in /dev directory.</p>
  
  <p>Question: How do i decide between /proc and /dev. Is this just a judgement call or are there any unwritten agreements on using these two.</p>