2.6.2: "-" or "_", thats the question

Harald Dunkel
2004-02-11T20:10:49Z

Hi folks,

'cat /proc/modules' returns most (all?) of the module names with
"_", e.g.

:
ipt_conntrack
ip_conntrack
iptable_filter
ip_tables
uhci_hcd
ohci_hcd
ehci_hcd
:

Very consistent. But the filenames of some kernel modules are
still written with "-", e.g.

/lib/modules/2.6.2/kernel/drivers/usb/host/ehci-hcd.ko
/lib/modules/2.6.2/kernel/drivers/usb/host/ohci-hcd.ko
/lib/modules/2.6.2/kernel/drivers/usb/host/uhci-hcd.ko

What would be the correct way to get the filename of a
loaded module? The basename would be sufficient.

Regards

Harri