title: GPIO access from kernel space
body: <p>After attempting to write a simple char device driver I now wish to write a char device driver to access the GPIO pins on a embedded linux board such as a Beagleboard. I am interested in writing a module <code>"mygpiomodule"</code> which when loaded must appear in <code>/dev/mygpiomodule</code> such that read, write from user space accesses the GPIO. I do not wish to access GPIO from user space. I want to do it as my first attempt towards writing a module that can interface with some peripheral. I want to stick some LEDs into the port and attempt to turn them on or off.</p>
  
  <p>How should I attempt doing this?  </p>
  
  <p>Thanks<br>
  Mir </p>