linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Oliver Neukum <Oliver.Neukum@lrz.uni-muenchen.de>
To: linux-hotplug@vger.kernel.org
Subject: unloading drivers and usage counters
Date: Sun, 21 Jan 2001 21:12:14 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-98011145918383@msgid-missing> (raw)

Hi,

going through the hotplugging scripts I noticed that there's no good way to 
unload modules. A time based approach cannot be used due to race conditions.
Unloading on device removal requires keeping a usage counter in user space.
This seems to be a brittle approach.

Not increasing the module usage counters on connect seems to be the wrong 
strategy.  The desire to keep the modules unloadable has come back to bite us
into our behind.
If the usage counters were increased for each connected device unloading would
come natural. A patch to disconnect drivers by an ioctl has been posted. It 
would allow forced unload.

	Regards
		Oliver

_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

             reply	other threads:[~2001-01-21 21:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-21 21:12 Oliver Neukum [this message]
2001-01-22  5:28 ` unloading drivers and usage counters David Brownell
2001-01-22  6:04 ` David Hinds
2001-01-22 16:26 ` David Brownell

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=marc-linux-hotplug-98011145918383@msgid-missing \
    --to=oliver.neukum@lrz.uni-muenchen.de \
    --cc=linux-hotplug@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;
as well as URLs for NNTP newsgroup(s).