[clug] lsmod renaming

Hal Ashburner hal.ashburner at gmail.com
Fri Sep 19 09:26:03 GMT 2008


Hey Clug
Anyone happen to have a theory why the '-' becomes a '_' in module names 
once inserted into the kernel?
Eg
% sudo modprobe snd-usb-audio
% lsmod | grep snd-usb-audio

you can modprobe snd_usb_audio and rmmod snd-usb-audio will also work.
It just seems odd and I've been losing using search engines to find an 
explanation. Some hangover from broken getopt implementations just 
scanning for '-' maybe?

Hal


More information about the linux mailing list