linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Which node has the device been bound to?
@ 2002-05-29 10:23 Kim Deokhwan
  2002-05-31 16:53 ` Oliver Neukum
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: Kim Deokhwan @ 2002-05-29 10:23 UTC (permalink / raw)
  To: linux-hotplug

Within a USB policy agent script, can we tell precisely which node the
device has been bound to?  According to
Documentation/usb/usb-serial.txt:

  When the device is connected and recognized by the driver, the driver
  will print to the system log, which node(s) the device has been bound
  to.

But the log message is too succint:

  May 27 10:51:11 localhost kernel: usbserial.c: Compaq iPAQ converter
  now attached to ttyUSB0 (or usb/tts/0 for devfs) 

In case of one iPAQ, we can find the relevant log entry by grepping the
LAST matched line.  But if two iPAQs are attached nearly at the same
time, the last matched line may not be the relevant entry because
context switching may happen between two agent scripts.

Do you have any method that can solve it?

Thanks.

--
Kim Deokhwan

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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

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

end of thread, other threads:[~2002-06-04 19:00 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-29 10:23 Which node has the device been bound to? Kim Deokhwan
2002-05-31 16:53 ` Oliver Neukum
2002-05-31 17:12 ` Dmitri
2002-05-31 18:26 ` Greg KH
2002-06-01  0:05 ` Oliver Neukum
2002-06-01  0:21 ` Greg KH
2002-06-01  1:14 ` Oliver Neukum
2002-06-03 18:00 ` Greg KH
2002-06-03 21:09 ` Oliver Neukum
2002-06-03 21:58 ` Greg KH
2002-06-03 22:43 ` Oliver Neukum
2002-06-03 22:46 ` Greg KH
2002-06-03 23:05 ` Oliver Neukum
2002-06-03 23:16 ` Greg KH
2002-06-03 23:37 ` Oliver Neukum
2002-06-03 23:50 ` Greg KH
2002-06-04 19:00 ` 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).