Re: [PATCH 2.6.20] kobject net ifindex + rename
- From: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>
- Date: Wed, 28 Feb 2007 10:16:05 +0100
Hi,
Patch for 2.6.20 is attached.
... and in the meantime netdevices aren't class_device any more :) IOW,
your patch isn't going to work any more. Also, I think wireless could
benefit from this as well.
The kobject framework is well designed, so adding these
features is trivial change and won't run the risk of breaking anything
(famous last words). Obviously, hotplug apps are free to ignore those
additional features.
Why not just add this to base kobject_rename instead? That way,
userspace is notified for all renames in sysfs.
The patch then collapses down to the change in net's sysfs code to add
the ifindex to the environment, and another change in kobject to invoke
a new event when a name changes and show the old name.
johannes
Attachment:
signature.asc
Description: This is a digitally signed message part
- Follow-Ups:
- Re: [PATCH 2.6.20] kobject net ifindex + rename
- From: Jean Tourrilhes
- Re: [PATCH 2.6.20] kobject net ifindex + rename
- References:
- [PATCH 2.6.20] kobject net ifindex + rename
- From: Jean Tourrilhes
- [PATCH 2.6.20] kobject net ifindex + rename
- Prev by Date: Re: fully honor vdso_enabled [i386, sh; x86_64?]
- Next by Date: Re: [PATCH 2/2] ehea: NAPI multi queue TX/RX path for SMP
- Previous by thread: [PATCH 2.6.20] kobject net ifindex + rename
- Next by thread: Re: [PATCH 2.6.20] kobject net ifindex + rename
- Index(es):
Relevant Pages
|