public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: hotplug mopup
@ 2000-12-11 21:10 David Brownell
  0 siblings, 0 replies; 8+ messages in thread
From: David Brownell @ 2000-12-11 21:10 UTC (permalink / raw)
  To: Marcus.Meissner, linux-kernel

> > - I don't think we can say that the kernel hotplug interface is 
> >   complete until we have real, working, tested userspace tools. David, 
> >   could you please summarise the state of play here? In particular, 
> >   what still needs to be done? 
> 
> Well, for USB I would like to know which device major/minor entry a newly 
> plugged device is associated with. 
> 
> Like if I insert a new USB camera, I want to easy find out it is char 81.1 
> (/dev/video1). Or if I plugin a USB storage device I want to easy find out 
> it is /dev/sda now. 

How might that relate to devfs integration?  It addresses similar
problems, and devfsd can call to userspace when such drivers (ones
that show up through major/minor device nodes) appear.  True, some
folk who want to hotplug might want to not run devfs.

- Dave
-
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/

^ permalink raw reply	[flat|nested] 8+ messages in thread
* hotplug mopup
@ 2000-12-10 12:31 Andrew Morton
  2000-12-10 12:58 ` Jeff Garzik
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Andrew Morton @ 2000-12-10 12:31 UTC (permalink / raw)
  To: David Brownell, lkml, linux-usb-devel@lists.sourceforge.net


A compendium of questions and misc stuff concerning hotplug:

- Is everyone happy with call_usermodehelper() being asynchronous? It
  _could_ be given a `synchronous' option, but that's a fair bit of
  obfuscation and it does expose us to deadlocks if the caller has any
  semaphores held.

- One person who definitely needs synchronous semantics is
  drivers/net/hamradio/baycom_epp.c.  The poor thing is currently doing
  the kernel_thread()/waitpid() stuff itself.  So there's a datum.

  hmm..  It's running a usermode app with the rtnl lock held. 
  There's a counter-datum.

- The three USB netdevice drivers look a bit racey in the probe()
  function.  Some can be fixed inline, but it may be better to just
  call dev_probe_lock()/dev_probe_unlock() in
  usb_find_interface_driver().  That's if dev_probe_lock() makes its
  way to kernel.org...

- On the unregister/removal path, the netdevice layer ensures that
  the interface is removed from the kernel namespace prior to launching
  `/sbin/hotplug net unregister eth0'.

  This means that when handling netdevice unregistration
  /sbin/hotplug cannot and must not attempt to do anything with eth0!
  Generally it'll fail to find an interface with this name.  If it does
  find eth0, it'll be the wrong one due to a race.

- I don't think we can say that the kernel hotplug interface is
  complete until we have real, working, tested userspace tools.  David,
  could you please summarise the state of play here? In particular,
  what still needs to be done?
-
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/

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

end of thread, other threads:[~2000-12-11 21:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-11 21:10 hotplug mopup David Brownell
  -- strict thread matches above, loose matches on Subject: below --
2000-12-10 12:31 Andrew Morton
2000-12-10 12:58 ` Jeff Garzik
2000-12-10 13:25   ` Andrew Morton
2000-12-10 15:10 ` Marcus Meissner
2000-12-11  2:36   ` Albert D. Cahalan
2000-12-11  7:04     ` Andrew Morton
2000-12-10 16:35 ` David Brownell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox