Re: Module Names - Hyphen Converted to Underscore

From: Tomasz Torcz
Date: Mon Dec 27 2004 - 15:00:48 EST


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@xxxxxxxxxxxxxxxxx

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/