Run strace to cat.
You will know what is causing the error.
Can you post the code?
Regards
Durga
From: Sam Carter <sam.w.carter@xxxxxxxxx>
To: kernelnewbies <kernelnewbies@xxxxxxxxxxxx>
Sent: Thu, January 7, 2010 7:01:20 AM
Subject: '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