Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-26-2005, 12:16 AM   #1
Registered: Oct 2005
Location: California
Distribution: Slackware rules!
Posts: 31

Rep: Reputation: 15
Linux device driver programming


I want to implement at least 5 character drivers from one kernel module. For each one's functions, I want to give the same functions but I want each of those functions to know from which character driver it belongs to. Is this completely impossible or is there a way to do this.

If you are wondering what purpose this will server: I want to write a windows driver emulation layer on top of Linux.

Thanks for all the help I know you will certainly give.
Old 11-26-2005, 10:46 AM   #2
LQ Newbie
Registered: Nov 2005
Distribution: Slackware v10.2 (kernel 2.4.31)
Posts: 3

Rep: Reputation: 0
I can only suggest something that might help: each of the five will most likely know fvrom whence it came because Linux HAS a way, when setting up the devices, that you can tell it what the device is used for. Just a suggestion: Look up the documentation in /usr/src, and look for the devices file. You may notice major and minor numbers, and because of these numbers, you will be able to tell the layer the difference between a parallel and serial port, or even the difference between a 55292 device and a 55292.1 device. Again, look up the devices file in the documentation in /usr/src, and I think that it will help you.


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
C++ or pure C for Linux kernel module, Linux device driver development. What to use? Igor007 Programming 91 07-19-2014 11:55 AM
Linux Device Driver malacma Linux - Software 10 10-09-2007 06:14 AM
I want some guide to know the basic about device drivers programming in linux. kadhiravan.r Linux - Software 2 07-18-2005 07:07 AM
linux device driver programming chandansingh Programming 1 03-26-2005 07:30 AM
Linux Driver Programming prowzen General 6 06-05-2001 02:44 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:02 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration