Subject: Re: Bug in
To: Matthias Drochner <drochner@zelux6.zel.kfa-juelich.de>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: current-users
Date: 12/16/1997 22:42:25
At 11:49 Uhr +0100 16.12.1997, Matthias Drochner wrote:
>Excerpts from netbsd: 16-Dec-97 Re: Bug in <bsd.kmod.mk> Hauke
>Fath@espresso.rhei (1035*)
>
>> modload(8) registers "IWM_lkmentry" (in my case); modunload(8) tries to
>> remove "IWM" and fails.
>
>Perhaps an inconsistency between the filename and
>the name declared in the MOD_XXX() macro?
>
>One more piece of brokeness in the LKM framework...

Not quite. When you register a module under the name "A" it appears
sensible to unregister it as "A" and not as "B". See also "man modunload".

I've send-pr'ed.

>[hauke@q700] /<5>lkm/iwm # make load
>/sbin/modload -o IWM -eIWM_lkmentry IWM.o
>Module loaded as ID 0
>[hauke@q700] /<5>lkm/iwm # modstat
>Type    Id  Off Loadaddr Size Info     Rev Module Name
>MISC      0   0 06ce6000 0018  6cea044   1 IWM_lkmentry
>[hauke@q700] /<5>lkm/iwm # make unload
>/sbin/modunload -n IWM
>modunload: id out of range
>*** Error code 3
>
>Stop.
>[hauke@q700] /<5>lkm/iwm #


	hauke


--
"It's never straight up and down"     (DEVO)