lkml.org 
[lkml]   [1998]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectsoundcore not unloading (Was: Re: Show stoppers)
On Mon, 12 Oct 1998, Petko Manolov wrote:

> Alex Buell wrote:
> >
> > One of the show stoppers is the inability for the soundcore module to
> > unload itself from memory when not in use. Just ran into this one just
>
> ;-) As Alan said - fixed ages ago! But still not applied by
> Linus (i wrote to Linus and vger but there was not responce).

Are you sure this is a fix? I my system it seems the problem lies in the
use count for the sound modules being wrong after loading. So I don't
think it is at module unload time but that at load time the use count is
not kept right.

tempest# modprobe sb ; lsmod
Module Size Used by
sb 22780 0 (unused)
uart401 5584 0 [sb]
sound 55452 0 [sb uart401]
soundcore 1840 6 [sb sound]

and then it breaks further when removing it,

tempest# modprobe -r sb
soundcore: Device or resource busy
tempest# lsmod
Module Size Used by
soundcore 1840 2

BTW, this is 2.1.125, and modutils 2.1.121. If I reload the modules as
above (modprobe sb), then the usage count goes up to 8 and so on. Also
note that the sound module should have a use count of 2, but has zero, and
uart401 should have 1. It would seem all the usage counts are charged to
soundcore.

Anyone with some spare debugging time?, it can't be that hard ;-)

Cheers,

Rafael


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

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.071 / U:0.600 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site