why am I getting an “implicit declaration of function 'ndo_get_stats' ” error?
问题 I'm building a VERY SIMPLE kernel module for gathering some stats from the network card here's the code, I keep getting an error implicit declaration of function 'ndo_get_stats' . I'm not sure why... #include <linux/module.h> /* Needed by all modules */ #include <linux/kernel.h> /* Needed for KERN_INFO */ #include <linux/netdevice.h> /* Needed for netdevice*/ static int __init hello_start(void) { struct net_device *dev; printk(KERN_INFO "Loading Stats module...\n"); printk(KERN_ALERT "Hello