Liunx网络驱动编程(4)

2021-01-20 23:22

华清远见

net_devicestruct net_device_ops {    int  (*ndo_open)(struct net_device *dev);    int  (*ndo_start_xmit) (struct sk_buff *skb,          struct net_device *dev);    int  (*ndo_set_mac_address)(struct net_device *dev,          void *addr);    int  (*ndo_do_ioctl)(struct net_device *dev,         struct ifreq *ifr, int cmd);    void (*ndo_tx_timeout) (struct net_device *dev);    ...} struct ethtool_ops {    int     (*get_settings)(struct net_device *, struct ethtool_cmd *);    int     (*set_settings)(struct net_device *, struct ethtool_cmd *);    void    (*get_drvinfo)(struct net_device *, struct ethtool_drvinfo *);    int     (*get_regs_len)(struct net_device *);    ...}

struct net_device{    struct net_device_stats stats;    const struct net_device_ops *netdev_ops;    const struct ethtool_ops *ethtool_ops;    ...}

 

 


Liunx网络驱动编程(4).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:【知识点】2019七年级英语下册 Unit 6 I’m watching TV(第1课时

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: