Module Names - Hyphen Converted to Underscore
I have compiled stock (kernel.org) 2.6.3 and 2.6.9 kernels which exhibit the following unusual behaviour on module loading: If the kernel module has a hyphen in its name, then this appears to be translated into an underscore by the kernel, such that, for example after "insmod 3w-xxxx", lsmod shows "3w_xxxx", "rmmod 3w-xxxx" fails but "rmmod 3w_xxxx" succeeds.
The distribution I am compiling the kernels under is Mandrake 10.0, and if I compile the 2.6.3-4mdk kernel source supplied with the distribution
then this problem does not arise.
A Google search reveals a number of similar problems, but with no explanation other than possible typing errors.
Any suggestions as to why this is happening?
Thanks in advance,
Jonathan.
Quoted 5 lines
The distribution I am compiling the kernels under is Mandrake 10.0, and if I compile the 2.6.3-4mdk kernel source supplied with the distribution then this problem does not arise.
Any suggestions as to why this is happening?
Maybe Mandrake has thrown some patches in to make it work?
Jan Engelhardt
Signature · 1 line
ENOSPC
Dnia 27-12-2004, pon o godzinie 19:38 +0000, AJM napisał(a):
Quoted 7 lines
I have compiled stock (kernel.org) 2.6.3 and 2.6.9 kernels which exhibit the following unusual behaviour on module loading: If the kernel module has a hyphen in its name, then this appears to be translated into an underscore by the kernel, such that, for example after "insmod 3w-xxxx", lsmod shows "3w_xxxx", "rmmod 3w-xxxx" fails but "rmmod 3w_xxxx" succeeds.
Any suggestions as to why this is happening?
That convenience thing, look at man modprobe:
modprobe intelligently adds or removes a module from the Linux kernel:
note that for convenience,there is no difference between _ and
- in module names.
Signature · 2 lines
Tomasz Torcz [email protected]
Tomasz Torcz writes the following:
Quoted 4 lines
modprobe intelligently adds or removes a module from the Linux kernel:
note that for convenience,there is no difference between _ and
- in module names.
What definition of convenience led to this?
In that spirit, should fs now interpret backslash as a directory separator? Having to remember the difference is SO inconvenient.