On Tue, Jan 10, 2006 at 06:22:40AM -0800, kanishk rastogi wrote: > if(fd=open("/dev/kanishk",O_RDWR)<=0) Are you sure /dev/kanishk has been created (by you, you don't have the logic in your example to have udev create it), and it has the proper permissions and the proper major/minor number assigned to it? thanks, greg k-h -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/