* Module Names - Hyphen Converted to Underscore
@ 2004-12-27 19:38 AJM
2004-12-27 19:43 ` Jan Engelhardt
2004-12-27 19:54 ` Tomasz Torcz
0 siblings, 2 replies; 4+ messages in thread
From: AJM @ 2004-12-27 19:38 UTC (permalink / raw)
To: linux-kernel
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Module Names - Hyphen Converted to Underscore
2004-12-27 19:38 Module Names - Hyphen Converted to Underscore AJM
@ 2004-12-27 19:43 ` Jan Engelhardt
2004-12-27 19:54 ` Tomasz Torcz
1 sibling, 0 replies; 4+ messages in thread
From: Jan Engelhardt @ 2004-12-27 19:43 UTC (permalink / raw)
To: AJM; +Cc: linux-kernel
> 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
--
ENOSPC
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Module Names - Hyphen Converted to Underscore
2004-12-27 19:38 Module Names - Hyphen Converted to Underscore AJM
2004-12-27 19:43 ` Jan Engelhardt
@ 2004-12-27 19:54 ` Tomasz Torcz
2004-12-27 20:09 ` Alan Curry
1 sibling, 1 reply; 4+ messages in thread
From: Tomasz Torcz @ 2004-12-27 19:54 UTC (permalink / raw)
To: linux-kernel
Dnia 27-12-2004, pon o godzinie 19:38 +0000, AJM napisał(a):
> 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.
--
Tomasz Torcz
zdzichu@irc.-spam.nie-.pl
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Module Names - Hyphen Converted to Underscore
2004-12-27 19:54 ` Tomasz Torcz
@ 2004-12-27 20:09 ` Alan Curry
0 siblings, 0 replies; 4+ messages in thread
From: Alan Curry @ 2004-12-27 20:09 UTC (permalink / raw)
To: linux-kernel
Tomasz Torcz writes the following:
>
> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-12-27 20:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-27 19:38 Module Names - Hyphen Converted to Underscore AJM
2004-12-27 19:43 ` Jan Engelhardt
2004-12-27 19:54 ` Tomasz Torcz
2004-12-27 20:09 ` Alan Curry
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox