Re: a quick Q: what is the .alias for
Please no top-posting. Thanks.
Am Freitag, 24. Februar 2012 schrieb Keith McKenzie:
> On 24/02/2012, lina <lina.lastname@gmail.com> wrote:
> > Hi,
> >
> > /lib/modules/3.2.5mj-lina/modules.alias
> > /lib/modules/3.1.13.1-mj-lina/modules.alias
> >
> > I don't know what the .alias stands for,
[…]
> An alias is one word that is another word for the same thing.
> An alias associates one word with another.
>
> >From man bash :-
>
> ALIASES
> Aliases allow a string to be substituted for a word when it is
> used as the first word of a simple command. The shell maintains
> a list of aliases that may be set and unset with the alias and
> unalias builtin commands (see SHELL BUILTIN COMMANDS below). The
[…]
> I hope that makes it clear :)
Nope. What Lina refered to are no bash aliases.
They are kernel module aliases:
martin@merkaba:~> head -3 /lib/modules/3.2.0-1-amd64/modules.alias
# Aliases extracted from modules themselves.
alias devname:cpu/microcode microcode
alias char-major-10-184 microcode
which also used to map USB / PCI ids to kernel modules:
martin@merkaba:~> grep pci /lib/modules/3.2.0-1-amd64/modules.alias | head
-3 ; grep usb /lib/modules/3.2.0-1-amd64/modules.alias | head -3
alias pci:v000010DBd0000802Esv*sd*bc*sc*i* gpio_ml_ioh
alias pci:v000010DBd00008043sv*sd*bc*sc*i* gpio_pch
alias pci:v000010DBd00008014sv*sd*bc*sc*i* gpio_pch
alias usb:v17E9p*d*dc*dsc*dp*icFFisc00ip00* udlfb
alias usb:v04E6p5591d*dc*dsc*dp*ic*isc*ip* pn533
alias usb:v04CCp2533d*dc*dsc*dp*ic*isc*ip* pn533
--
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA B82F 991B EAAC A599 84C7
Reply to: