Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I am new to developing Linux device drivers. I have written a virtual device driver (char driver). After inserting its module (by insmod) I can see it in the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2010
    Posts
    9

    Device Driver - failed to open


    Hi,

    I am new to developing Linux device drivers.
    I have written a virtual device driver (char driver). After inserting its module (by insmod) I can see it in the /dev directory.
    However, in my application when I try to open the device using "open", it returns -1. The returned errno is 6 (ENXIO).

    Am I missing something?
    Any help will be appreciated.

    Regards,
    Mickey

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,393
    Post your code here for the initialization of the library as well as for the open command.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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