On Sun, 28 Feb 2016, Jeff Epler wrote: > Date: Sun, 28 Feb 2016 09:37:07 -0600 > From: Jeff Epler <[email protected]> > Reply-To: EMC developers <[email protected]> > To: EMC developers <[email protected]> > Subject: Re: [Emc-developers] About the header file "ioctl.h" in HAL? > > It sounds like you are using RTAI realtime, which builds all realtime > components as kernel modules. > > The header <sys/ioctl.h> is not suitable for use when building a kernel > module. > > Since no drivers in linuxcnc use rtnet, I do not have any examples to > point you towards. I suggest you read rtnet documentation, it should > clarify what headers you can use for networking features. > > The existing ethernet driver in linuxcnc 2.7, hm2_eth, only works with > "uspace" realtime where realtime runs as a standard linux process but > real-time scheduling priority. Components are just shared libraries, > and hm2_eth makes regular userspace socket calls. > > Jeff
The original hm2-eth driver used RT-Net and RTAI, the origin/ubc3-7i80 branch. We temporarily gave up on RT-Net since it seemed to be abandoned and MAC drivers for current hardware were unavailable. We changed to Preempt-RT and using the stock network stack as a stop-gap until RT-Net caught up, but it turned out that real time network performance with Preempt-RT and the stock linux stack was perfectly adequate for servo thread update rates and had the advantage of supporting a wider range of hardware so at least for our purposes RT-Net doesn't really have any advantages. Now that RT-Net been adopted by the Xenomai project, it may become better supported. Peter Wallace Mesa Electronics ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
