Kay Sievers wrote:
> On Mon, Nov 24, 2008 at 11:50, Daniel Lezcano <[EMAIL PROTECTED]> wrote:
> 
>  struct kobject {
>       const char              *name;
>       struct list_head        entry;
> @@ -63,6 +65,9 @@ struct kobject {
>       struct kset             *kset;
>       struct kobj_type        *ktype;
>       struct sysfs_dirent     *sd;
> +#ifdef CONFIG_NET
> +     struct net              *net;
> +#endif
>       struct kref             kref;
>       unsigned int state_initialized:1;
>       unsigned int state_in_sysfs:1;
> 
> We cannot do that. Network specific stuff does not belong into
> kobjects. Kobjects are not in any way subsystem specific, and we need
> to keep it that way.

That makes sense :)

Is there a way to follow up from the kobject, the netdev associated with 
it ? I mean in the function kobject_uevent_env, how can I check the 
event is related to a network device and retrieve the struct net_device 
from it ?

Thanks.
  -- Daniel

_______________________________________________
Containers mailing list
[EMAIL PROTECTED]
https://lists.linux-foundation.org/mailman/listinfo/containers

_______________________________________________
Devel mailing list
[email protected]
https://openvz.org/mailman/listinfo/devel

Reply via email to