Understanding Linux Network Device Drivers (Part 6)

Understanding Linux Network Device Drivers (Part 6)

2.3 Functions Related to Network Device Drivers 1. Allocate and initialize net_device structure struct net_device *alloc_netdev_mqs(int sizeof_priv, const char *name,unsigned char name_assign_type, void (*setup)(struct net_device *),unsigned int txqs, unsigned int rxqs); Function: Allocate network device Parameters: @sizeof_priv: Size of private data, space allocated for it @name: Device name format string @assign_type: Source of device name … Read more