Learning device drivers

I wrote this charater device driver for learning how they work.This is actually an assignment that we got today. .  Prof. TS Reddy  from JNTU helped me to debug the code.  I am planning to make a tutorial on it once I reach home. The course is becoming more and more exciting.  The internet access is very limited now. I will update when I have net access and free time.