Hi, I was trying to implement a silly virtual device on Linux which returns any number of "1" as requested. Here is the Device Driver I wrote for it:- http://pastebin.com/v74EXdM7 . I compiled it as a loadable module using the command :- *make -C /usr/src//linux-headers-3.2.0-29-generic M=$PWD modules *. Then I loaded this module to kernel using* insmod . *It gets loaded and that is confirmed by the message it writes to the syslog. From the /proc/devices it was also confirmed that it was allocated a major number of 250. Then next step was to create a device file using mknod which I did it as following: *mknod /dev/p0* *c 250 0* . I also set the necessary file permissions. Now when I try *cat /dev/p0* its giving me *No such device/address* error. Can you please help me out with this?
-- *Regards,* *Paul Davies C* vivafoss.blogspot.com -- Mailing list guidelines and other related articles: http://lug-iitd.org/Footer
