LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-12-2013, 02:29 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,535

Rep: Reputation: 51
Is a linux module a driver?


Or is a driver in linux a module? They are not the same questions, I know.

EDIT: Sorry, I think I have the answer here.

Last edited by stf92; 01-12-2013 at 02:37 AM.
 
Old 01-12-2013, 06:25 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,688

Rep: Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259Reputation: 1259
Not necessarily the same.

Yes, most - if not all - drivers can be modules.

But modules can also include filesystems, which are not necessarily counted as drivers. Other modules provide for additional capabilities - such as VMware with their scheduling extensions for VM support.

Most modules do include a driver interface as part of their implementation - this allows for interaction with things like the sysfs filesystem (usually mounted as /sys). These allow for interactions with the module for setting/retrieving data as a side channel to direct the functioning of the module.

Modules are a way of extending the kernel. Often as device drivers, filesystems, or just interfaces into the kernel (debugging, tracing, accounting, security, scheduling...). Almost the only parts of the kernel that can't be extended by modules is memory management, task switching, and of course module loading.

Last edited by jpollard; 01-12-2013 at 06:26 AM.
 
1 members found this post helpful.
Old 01-12-2013, 06:54 AM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,535

Original Poster
Rep: Reputation: 51
Thanks jpollard. And by the way, where can I found the latest versions of Sound-HOWTO and ALSA-HOWTO? I've read a lot of documentation in my slackware distribution, including ...Documentation/sound/alsa/*. The latter is highly technical and the former ones from 1999! I'd would be glad if you send me some references.

As another question, who determines which sound card is card 0 and so on? I have the sound card and the builtin speaker, which are seen by the system as two different cards. I believe the sound card is card 0 and the speaker car 1. Can it be the other way around? Perhaps this tells it:
Code:
semoi@darkstar:/etc$ v /dev/snd
total 0
drwxr-xr-x 2 root root       80 2013-01-11 20:33 by-path/
crw-rw---- 1 root audio 116,  8 2013-01-11 23:33 controlC0
crw-rw---- 1 root audio 116,  3 2013-01-11 23:33 controlC1
crw-rw---- 1 root audio 116,  7 2013-01-11 23:33 hwC0D2
crw-rw---- 1 root audio 116,  6 2013-01-11 23:33 pcmC0D0c
crw-rw---- 1 root audio 116,  5 2013-01-12 06:26 pcmC0D0p
crw-rw---- 1 root audio 116,  4 2013-01-11 23:33 pcmC0D2c
crw-rw---- 1 root audio 116,  2 2013-01-11 23:33 pcmC1D0p
crw-rw---- 1 root audio 116,  1 2013-01-11 23:33 seq
crw-rw---- 1 root audio 116, 33 2013-01-11 23:33 timer
semoi@darkstar:/etc$
But will the sound card will always be card 0 in my system, or perhaps, because I wrote a bad /etc/modprobe.d/alsa.conf, it can be card 1?
 
  


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
Linux driver module info greplinux Linux - Newbie 1 05-17-2012 06:32 PM
adding a new kernel module to wireless driver module nandan.amar Linux - Newbie 2 04-22-2010 09:21 AM
rtl8187 driver module load error (Invalid module format) j_75080 Linux - Networking 3 07-06-2009 09:37 PM
nvidia driver 8762 kernel module mismatch x module openfun Ubuntu 5 06-27-2006 10:02 PM


All times are GMT -5. The time now is 02:23 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