华清远见 发送流程
定制 ioctl IEEE 1588使用 ioctl
实现:
static const struct net_device_ops igb_netdev_ops = { .ndo_do_ioctl = igb_ioctl, ...} static int igb_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd){ switch (cmd) { case SIOCGMIIPHY: case SIOCGMIIREG: case SIOCSMIIREG: return igb_mii_ioctl(netdev, ifr, cmd); case SIOCSHWTSTAMP: return igb_hwtstamp_ioctl(netdev, ifr, cmd); default: return EOPNOTSUPP;}}
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库Liunx网络驱动编程(13)在线全文阅读。
相关推荐: