Results 1 to 2 of 2
i created
$mknod /dev/input/myevent 15 1
then iam trying to write something into it..
.....
open("/dev/input/myevent",O_RDWR)
....
This is giving me an error saying NO SUCH DEVICE OR ADDRESS...
pl ...
- 05-10-2007 #1Just Joined!
- Join Date
- May 2007
- Posts
- 9
problem opening device files
i created
$mknod /dev/input/myevent 15 1
then iam trying to write something into it..
.....
open("/dev/input/myevent",O_RDWR)
....
This is giving me an error saying NO SUCH DEVICE OR ADDRESS...
pl help..
- 05-10-2007 #2Linux User
- Join Date
- Oct 2004
- Location
- /dev/random
- Posts
- 404
The open() system call for a device file needs to be handled by the corresponding device driver - which in your case would be registered with major no. 15. If the kernel doesn't find any device driver which is registered (loaded) to handle the corresponding device, it returns an ENODEV (No such device or address) error.
The Unforgiven
Registered Linux User #358564


Reply With Quote