linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: (remove) event not supported.
@ 2001-03-30 17:21 David Brownell
  2001-03-31  1:00 ` Brad Hards
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: David Brownell @ 2001-03-30 17:21 UTC (permalink / raw)
  To: linux-hotplug

> Mar 30 08:07:01 localhost /etc/hotplug/usb.agent: USB remove event not supported
> 
> What are the issues associated with it. Is this something that just
> hasn't been coded up or is it something that can't be coded up.

Awkward to code up.  What one really wants to happen is have
the device's module removed ... and _maybe_ some driver-specific
action (not that I can think of any examples just now).  But:

- the dynamic linking framework doesn't track how many devices
  are attached to each driver module ... so if there's another device
  controlled by the same driver, but it's not opened, removing that
  module would be incorrect.  ("module use count" doesn't cover
  uses, just opens.)

- nothing's tracking which modules are used with which device,
  and if the device is gone you can't query it to find that out!

Such issues aren't specific to USB; any hotpluggable bus has such
problems.  But it's worst for USB:  PCMCIA and Cardbus
tend to only have one device of a type at a time, and typically
only have two slots, but USB can handle a hundred devices,
and it's not that uncommon to have multiple devices.


> If it simply hasn't been written, if you give me a few pointers on how
> it should be written. I'll code it up.

I think that it'll be tough to provide a "good" fix for this without
updating the module framework; and that maybe a few other
issues will show up too.  But maybe there are better ways to
look at this problem.

- Dave




_______________________________________________
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] 16+ messages in thread

end of thread, other threads:[~2001-04-02  2:56 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-30 17:21 (remove) event not supported David Brownell
2001-03-31  1:00 ` Brad Hards
2001-03-31  2:03 ` Keith Owens
2001-03-31  2:12 ` Brad Hards
2001-03-31  3:48 ` David Hinds
2001-03-31  8:55 ` Brad Hards
2001-03-31 14:56 ` David Brownell
2001-03-31 15:02 ` David Brownell
2001-03-31 15:49 ` Keith Owens
2001-03-31 16:05 ` David Brownell
2001-03-31 16:18 ` Keith Owens
2001-03-31 16:52 ` David Brownell
2001-04-01  3:02 ` David Hinds
2001-04-01  3:03 ` David Hinds
2001-04-01  5:26 ` Douglas Gilbert
2001-04-02  2:56 ` Trond Eivind Glomsrød

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