Re: 'No such device or address' when writing to device driver

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

 



Dear Sam Carter,

Maybe you have not "mknod" , so the /dev/myDevice could not be found.


Sincerely yours,
chiachen
luojiazhen@xxxxxxxxx
2010-01-08

======= 2010-01-07 09:31, your message: 'No such device or address' when writing to device driver=======

Hi all,

I'm trying to write a simple char driver following the 'Linux Device Drivers' book from O' Reilly. My driver appears in /proc/devices and under lsmod. I've been trying to register the device fops table so I can read/write to it, however when I try to cat some data to it in /dev/myDevice I get the error 'No such device or address'.. The device does appear on the list with ls /dev/.

Can anyone help me find the source of this problem? Thanks in advance.

Sam


= = = = = = = = = = = = = = = = = = = =

[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