#include <linux/device.h>
#include <linux/etherdevice.h>
#include <linux/netdevice.h>
struct net_device_devres { … };
static void devm_free_netdev(struct device *dev, void *this)
{ … }
struct net_device *devm_alloc_etherdev_mqs(struct device *dev, int sizeof_priv,
unsigned int txqs, unsigned int rxqs)
{ … }
EXPORT_SYMBOL(…);
static void devm_unregister_netdev(struct device *dev, void *this)
{ … }
static int netdev_devres_match(struct device *dev, void *this, void *match_data)
{ … }
int devm_register_netdev(struct device *dev, struct net_device *ndev)
{ … }
EXPORT_SYMBOL(…);