* usb hotplug \$DEVICE empty
@ 2004-10-25 12:32 Klaus Dittrich
0 siblings, 0 replies; 2+ messages in thread
From: Klaus Dittrich @ 2004-10-25 12:32 UTC (permalink / raw)
To: linux mailing-list
In 2.6.10-rc1-bk2 my hotplug script does not get the
usb-device via $DEVICE any more.
(Yes, I have CONFIG_USB_DEVICEFS=y in .config)
Other information like ACTION PRODUCT .. is still passed.
The last kernel (I have here) which worked in this respect
is 2.6.9-rc4-bk7.
--
Klaus
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: usb hotplug $DEVICE empty
@ 2004-10-27 11:59 Klaus Dittrich
0 siblings, 0 replies; 2+ messages in thread
From: Klaus Dittrich @ 2004-10-27 11:59 UTC (permalink / raw)
To: linux mailing-list
I found out why $DEVICE did not show of in /sbin/hotplug
any more. (2.6.10-rc1-bk5)
Depending on the setting of CONFIG_USB_DEVICEFS
either the environment variables DEVICE or PRODUCT
which should be passed to /sbin/hotplug become overwritten
by the environment variable SEQNUM.
This happens in kobject_hotplug() of lib/kobject_uevent.c.
The here called hotplug_ops->hotplug function usb_hotplug()
advances both, the index to envp and the pointer into buffer
but the calling function gets no notice of that.
So to add SEQNUM later on it advances index/pointer to
envp/buffer from where it has stopped before calling
usb_hotplug(), thus overwriting the first entry that
usb_hotplug() has added before.
--
Klaus
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-27 12:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-25 12:32 usb hotplug \$DEVICE empty Klaus Dittrich
-- strict thread matches above, loose matches on Subject: below --
2004-10-27 11:59 usb hotplug $DEVICE empty Klaus Dittrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox