struct snull_priv {
struct net_device_stats stats;//有用的统计信息
int status;//网络设备的状态信息,是发完数据包,还是接收到网络数据包
int rx_packetlen;//接收到的数据包长度
u8 *rx_packetdata;//接收到的数据
int tx_packetlen;//发送的数据包长度
u8 *tx_packetdata;
struct sk_buff *skb;
spinlock_t lock;
};
在2.6左右没有什么问题,但是3.0以上就放弃了这个结构,那么3.0以上具体是怎么实现的呢?