• Patrick Mochel's avatar
    net devices: Get network devices to show up in sysfs. · 6ed6b9bf
    Patrick Mochel authored
    - declare net_subsys, and register during net_dev_init().
    - Add kobject to struct net_device.
    - initialize name and register in register_netdevice().
    - remove in unregister_netdevice().
    
    This allows one to see the registered network devices in the system via:
    
    # tree /sys/net/
    /sys/net/
    `-- eth0
    6ed6b9bf
dev.c 70.1 KB