title: How to access devices through sysfs?
body: <p>I am looking for a tutorial or example code that will help me understand how to work with sysfs in linux. I am a total beginner in this area and as such, will appreciate any help I can get.</p>
  
  <p>My end goal is to write an application that will let me read/write data to an SPI EEPROM using the at25 driver. </p>
  
  <p>So far, I have looked at the tutorial given at <a href="http://www.signal11.us/oss/udev/" rel="nofollow">http://www.signal11.us/oss/udev/</a> and also at the <a href="http://www.kernel.org/pub/linux/utils/kernel/hotplug/libudev/index.html" rel="nofollow">libudev</a> page at kernel.org, but they didn't help me much.</p>
  
  <p>What good sites/articles/examples should I refer to get a deeper understanding about how sysfs works and how to use it?</p>