Find the answer to your Linux question:
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 ...
  1. #1
    Just Joined!
    Join Date
    May 2007
    Posts
    9

    Red face 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..

  2. #2
    Linux 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...