Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-11-2009, 10:00 AM   #1
Registered: Feb 2007
Posts: 30

Rep: Reputation: 15
help for char device driver


Can any one give an idea on Linux device file modal?
I am facing a weird problem with one of the device driver. I compiled and build the driver successfully and got *.ko file. I used "mknod /dev/filename type major number" command and created a device file in /dev directory. then i wrote an application to open the device file and executed it.
I get an error message "No device or file with "filename". in /dev
can any one suggest where i am going wrong. I read about udev and hotplugging etc., but i want this device driver to load statically. when i try to open some other device driver like "Console" using the same application it is executing successfully.

thanks and regards
Old 01-11-2009, 05:12 PM   #2
Registered: Aug 2008
Posts: 107

Rep: Reputation: 16
Post the exact command that you used. Then, after running it, post the contents of /proc/devices. Also read

> man mknod


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
char device programming shariefbe Linux - Newbie 1 10-04-2008 03:33 PM
Problem in compiling a char device driver formerly for kernel 2.4 on kernel 2.6 payretep Linux - Newbie 6 09-24-2007 05:43 AM
Doubt in char device driver for linux 2.6 tomkaith13 Programming 6 11-27-2006 04:46 AM
char device module the_uplink2x Programming 2 05-24-2005 10:53 PM
user-mode Linux char device driver with "unresolved symbol __generic_copy_to_user" dlobron Linux - General 0 11-14-2004 09:41 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration