LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-24-2012, 05:18 AM   #1
sathish167
LQ Newbie
 
Registered: Sep 2010
Posts: 5

Rep: Reputation: 0
what's the purpose of alias in /etc/module.conf


If my understanding is correct, we use modprobe <modulename> to load modules. what purpose does a alias in /etc/module.conf when we can directly load the module using the modulename. I am trying to understand the modules concepts. So please suggest me...
 
Old 01-24-2012, 05:29 AM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
There are advantage to use common name modules with various hardware

Say for audio sound card for example, my card use snd-ice1712 module
I have aliases in modprobe.conf.d/sound.conf:
Code:
alias snd-card-0 snd-ice1712
alias sound-slot-0 snd-ice1712
This way programs could use common generic name (snd-card-0, sound-slot-0) instead of using names that are different for each sound card chipset
 
1 members found this post helpful.
Old 01-24-2012, 06:17 AM   #3
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Check this page for more information on /etc/modules.conf :

http://linux.about.com/od/commands/l...l5_modules.htm
 
Old 01-24-2012, 07:18 AM   #4
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by sathish167 View Post
If my understanding is correct, we use modprobe <modulename> to load modules. what purpose does a alias in /etc/module.conf when we can directly load the module using the modulename. I am trying to understand the modules concepts. So please suggest me...
alias is some what a different name entry which a user wants to use.

like I use in my httpd.conf

Code:
Alias /mail /var/www/html/mail
here I just need to type my IP followed by alias name to open my page

I don't think alias is a big hurdle for letting you understand the modules concept.
 
Old 01-24-2012, 07:47 AM   #5
sathish167
LQ Newbie
 
Registered: Sep 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Cedrik View Post
There are advantage to use common name modules with various hardware

Say for audio sound card for example, my card use snd-ice1712 module
I have aliases in modprobe.conf.d/sound.conf:
Code:
alias snd-card-0 snd-ice1712
alias sound-slot-0 snd-ice1712
This way programs could use common generic name (snd-card-0, sound-slot-0) instead of using names that are different for each sound card chipset
thanks.. so this way any program/process would use a generic module name independent of the actual hardware.. thats cool.
 
  


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
Purpose of asound.conf? ananth86coolguy Linux - Newbie 1 11-30-2009 04:11 AM
xinetd.conf purpose legcard Linux - Software 0 02-07-2008 06:45 PM
What couses the modules.conf alias need... errno Linux - Enterprise 0 06-07-2004 11:39 AM
[FC2] How to write a modprobe.conf from a module.conf??? Coume Fedora 0 05-31-2004 04:40 AM
Lost alias line in modules.conf RebootKid Linux - Hardware 5 02-20-2003 06:48 PM


All times are GMT -5. The time now is 03:16 AM.

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