title: Access and use the values of the accelerometer in the Android kernel level
body: <p>How can I access the accelerometer in the android kernel space and use it's data? I'm working on a project where I need to control some of the phone's functionality while the phone is moving (in a car) and I want to use the accelerometer to help determine if the phone had accelerated. It has to all be done in the kernel space. I found on the android developer pages how to use the accelerometer and the SensorEvent to detect changes in a user level application. But how to do something like that on the kernel level? Should I make a system call?</p>
  
  <p>From looking around a bit and searching, I think the files are in /goldfish/drivers/hwmon/ but I'm not quite sure.</p>