Re: Problem in Reading the Device file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux