华清远见 发送流程
定制 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;}}