LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 12-26-2003, 02:49 PM   #1
fang0654
Member
 
Registered: Oct 2003
Location: New York, NY
Distribution: Ubuntu
Posts: 110

Rep: Reputation: 28
Question about drivers


I was wondering how exactly drivers work.. are they just information on how to communicate with a piece of hardware, or are they actually executable code that interfaces with the os?

I was wondering if it would be possible to make an automatic driver converter piece of software.. Something that runs under Win32, and watches what a driver does.. aka OS tells driver to perform function X, driver makes Y address calls to hardware, etc, etc...

Then this program would output to a file that could a) be made into a linux driver, or b) give the info to build a driver

Just a thought...

Edit: Hit submit to early

Last edited by fang0654; 12-26-2003 at 02:51 PM.
 
Old 12-26-2003, 02:53 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
On a search, an official definition and explanation of a driver:

A program that controls a device. Every device, whether it be a printer, disk drive, or keyboard, must have a driver program. Many drivers, such as the keyboard driver, come with the operating system. For other devices, you may need to load a new driver when you connect the device to your computer. In DOS systems, drivers are files with a.SYS extension. In Windows environments, drivers often have a.DRV extension.

A driver acts like a translator between the device and programs that use the device. Each device has its own set of specialized commands that only its driver knows. In contrast, most programs access devices by using generic commands. The driver, therefore, accepts generic commands from a program and then translates them into specialized commands for the device.


Writing drivers or programs about them I would have no idea about.. maybe someone else will come along and give some insightful information regarding that.

Cheers.
 
Old 12-26-2003, 02:57 PM   #3
fang0654
Member
 
Registered: Oct 2003
Location: New York, NY
Distribution: Ubuntu
Posts: 110

Original Poster
Rep: Reputation: 28
Thank you, that's what I thought.. I wonder if maybe windows has some kind of protected mode about it with drivers.. as in nothing else can access the communication flow between the driver and the device.. I think I may do a little research into this
 
Old 12-26-2003, 03:04 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally posted by fang0654
Thank you, that's what I thought.. I wonder if maybe windows has some kind of protected mode about it with drivers.. as in nothing else can access the communication flow between the driver and the device.. I think I may do a little research into this
Most manufacturers will have their source and schematics of their hardware closed off and proprietary, so others cannot see how they create/build their products and drivers to steal ideas, etc.

This is one reason why some companies lack in creating drivers for linux, they think just because Linux is opensource they have to open up everything, which is false.

Hope that sheds some more light on this topic.
 
  


Reply


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
nvidia drivers question vbmark Mandriva 34 11-26-2004 07:46 PM
Question about ATI drivers EmbraceThePengu Mandriva 1 03-18-2004 06:08 PM
Writing Drivers-question turls Programming 5 01-08-2004 12:44 PM
Via Drivers Question lmanwarren Linux - Newbie 4 10-22-2003 07:09 PM
Nvidia Drivers question Mega Man X Linux - General 13 08-22-2003 04:41 PM


All times are GMT -5. The time now is 12:32 PM.

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