Hi! On 20:56 Mon 13 Sep , Tushar Dadlani wrote: > Hi , > > I wanted to know how do I use eth0 from kernel space. How do i get the > information of running struct net_device references?? Call register_netdevice_notifier to register a listener. Catch the NETDEV_REGISTER/NETDEV_UNREGISTER or NETDEV_UP/NETDEV_DOWN events. You can create the listener at any time and you will receive the REGISTER+UP events, even if the devices have been up very long. If you want to maintain a reference to struct net_device, do not forget to call dev_hold and dev_put. -Michi -- programing a layer 3+4 network protocol for mesh networks see http://michaelblizek.twilightparadox.com -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ