linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* unloading drivers and usage counters
@ 2001-01-21 21:12 Oliver Neukum
  2001-01-22  5:28 ` David Brownell
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Oliver Neukum @ 2001-01-21 21:12 UTC (permalink / raw)
  To: linux-hotplug

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-01-22 16:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-21 21:12 unloading drivers and usage counters Oliver Neukum
2001-01-22  5:28 ` David Brownell
2001-01-22  6:04 ` David Hinds
2001-01-22 16:26 ` David Brownell

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).