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

Ryan Reich
2004-02-15T15:02:27Z

Harald Dunkel wrote:
> Coywolf Qi Hunt wrote:
>
>> Harald Dunkel wrote:
>>
>>>
>>> What would be the correct way to get the filename of a
>>> loaded module? The basename would be sufficient.
>>>
>>>
>> The symbole names used in source code, like function names tend to use
>> "_", while the file names use "-" IMHO.
>>
>
> Naturally the symbols in the code use '_', cause for C '-'
> is not allowed within symbol names.
>
> I am interested in the module file names. 'cat /proc/modules'
> should return the correct module names, but for some modules
> (like uhci_hcd vs uhci-hcd.ko) '_' and '-' are messed up.

According to the modprobe man page, the two symbols are interchangeable.

--
Ryan Reich
ryanr@uchicago.edu