mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mauricio Martinez <mmartine@ECE.NEU.EDU>
To: linux-kernel@vger.kernel.org
Subject: Module usage count - sound
Date: Thu, 8 Feb 2001 01:18:10 -0500 (EST)	[thread overview]
Message-ID: <Pine.GSO.4.21.0102080109220.24634-100000@bach> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=X-UNKNOWN, Size: 1556 bytes --]


Kernel 2.4.1

I have sound support, OSS and my soundcard (sb) configured as modules

If I just play a sound on /dev/dsp, I get the following after the program
exits:

mixcoac:~> cat /proc/modules
sb                      2000   0 (autoclean)
sb_lib                 33504   0 (autoclean) [sb]
uart401                 6224   0 (autoclean) [sb_lib]
sound                  55280   0 (autoclean) [sb_lib uart401]
soundcore               3664   5 (autoclean) [sb_lib sound]

This means that the sound modules are not longer used and thus,
removable. Everything OK so far.

The problem occurs when /dev/dsp is blocked by the above described
process, and another process (say SOX, XMMS and such) attempts to write
to the same device. After the two of them finish, the usage count is not
reset for some reason, like

mixcoac:~> cat /proc/modules
sb                      2000   1 (autoclean)
sb_lib                 33504   0 (autoclean) [sb]
uart401                 6224   0 (autoclean) [sb_lib]
sound                  55280   0 (autoclean) [sb_lib uart401]
soundcore               3664   5 (autoclean) [sb_lib sound]

So, the module cannot be removed and stays loaded forever.

This problem is 100% reproductable.

What's wrong? any ideas?

---------------------------------------------------------------------------
Mauricio Martínez      Northeastern University    mmartine@ece.neu.edu

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

                 reply	other threads:[~2001-02-08  6:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.4.21.0102080109220.24634-100000@bach \
    --to=mmartine@ece.neu.edu \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®