linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* hotplug "rename" event for kobject_rename()?
@ 2004-09-13 17:14 Kay Sievers
  2004-09-15  0:35 ` Greg KH
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Kay Sievers @ 2004-09-13 17:14 UTC (permalink / raw)
  To: linux-hotplug

Hi,
we currently get hotplug events for kobject "add" and "remove". Wouldn't
it be nice to get the same kind of event for a kobject "rename"? 

We currently fake a hotplug-event with udev while renaming a net-device.
We compose the new DEVPATH and call the network hotplug script from a
dev.d/ callout. If we would get a real "rename" event we can get rid of
that indirection and the rest of userspace can act properly too :).

What do you think about emitting a "rename" event from:
  kobject_rename(struct kobject * kobj, char *new_name)

and add the old name to the environment?

Thanks,
Kay



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
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] 4+ messages in thread

end of thread, other threads:[~2004-09-15  3:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-13 17:14 hotplug "rename" event for kobject_rename()? Kay Sievers
2004-09-15  0:35 ` Greg KH
2004-09-15  1:34 ` Kay Sievers
2004-09-15  3:50 ` Greg KH

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