LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-01-2007, 12:34 PM   #1
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Rep: Reputation: 46
difference between hardware driver and module?


I think a driver is, sort of, part of a module. Is that right?
 
Old 01-01-2007, 12:46 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
As I understand it, a module is a kernel plug-in. It's code that runs in "kernel space", as if it were built into the kernel. One of the uses of kernel modules is to provide hardware drivers, but that's not the only thing they can provide.

A driver is simply a bit of code that tells the computer how to interface with a certain hardware device. In linux, they are most commonly designed as kernel modules (probably for efficiency), but it is possible to create module that work outside of it, in "user space". The ntfs-3g driver is an example of a non-module driver.
 
1 members found this post helpful.
Old 01-01-2007, 01:55 PM   #3
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Funny, that FS driver is an example of driver that does not communicate directly with hardware... So your example shows not the point you wanted to illustrate. It is easy to give an example of device driver being not entirely in kernel space: wireless drivers load firmware with help from userspace applications which find firmware and copy it to a special place on /sys filesystem.
 
Old 01-01-2007, 02:46 PM   #4
Sepero
Member
 
Registered: Jul 2004
Location: Tampa, Florida, USA
Distribution: Ubuntu
Posts: 734
Blog Entries: 1

Rep: Reputation: 33
From what I understand, it goes like this:

Dog is to Animal
-As-
Driver is to Module

Not all animals are dogs, but all dogs are animals.
Not all modules are drivers, but all drivers are modules.

A driver is like a sub-class of module.
 
1 members found this post helpful.
Old 01-01-2007, 03:07 PM   #5
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
As far as I understand, video drivers in X are working one half in userspace and one half in kernel space. So each driver contains a module, but may be bigger (on the other hand, the module can be not exactly module when it cannot be omitted on any architecture where it can be built at all).
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nvidia driver 8762 kernel module mismatch x module openfun Ubuntu 5 06-27-2006 10:02 PM
difference between bus-based hardware RAID and fakeraid? Chowroc Linux - Hardware 4 02-05-2006 10:05 PM
What is the difference (hardware) btw a server and a desktop?!? v@ny@ General 10 12-20-2005 08:41 PM
difference between hardware raid and logical volume manager pve Linux - General 6 12-28-2004 10:37 PM
built in or module? any difference ganja_guru Linux - Software 3 10-16-2004 03:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:26 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
Open Source Consulting | Domain Registration