linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: hotplug "rename" event for kobject_rename()?
Date: Mon, 13 Sep 2004 17:14:33 +0000	[thread overview]
Message-ID: <1095095673.15966.47.camel@localhost.localdomain> (raw)

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

             reply	other threads:[~2004-09-13 17:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-13 17:14 Kay Sievers [this message]
2004-09-15  0:35 ` hotplug "rename" event for kobject_rename()? Greg KH
2004-09-15  1:34 ` Kay Sievers
2004-09-15  3:50 ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1095095673.15966.47.camel@localhost.localdomain \
    --to=kay.sievers@vrfy.org \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).