今天看到/etc/modprobe.conf文件中有如下内容:

alias eth0 pcnet32

其中alias啥意思,不太明白,查之,原来是给设备做备注的。开始也忘了查man,后来才知道啥意思,再查man,解释得很详细。

alias wildcard modulename
          This  allows  you  to  give  alternate  names  for  a  module.   For  example:  "alias  my-mod really_long_modulename"  means  you  can  use   "modprobe   my-mod"   instead   of   "modprobe really_long_modulename".    You   can  also  use  shell-style  wildcards,  so  "alias  my-mod* really_long_modulename" means that "modprobe my-mod-something" has the same effect.  You can’t have  aliases  to  other  aliases (that way lies madness), but aliases can have options, which will be added to any other options.

          Note that modules can also contain their own aliases, which you can see using modinfo.   These aliases  are  used as a last resort (ie. if there is no real module, install, remove, or alias command in the configuration).

继续阅读