Linux cnc raw socket.

More
7 months 2 weeks ago #344263 by BIBIGUL
Question. If I use speculative memory access via _mm_prefetch (SSE instruction), does it affect the Linux CNC kernel? I am using this on RAW L2 Zero Copy sockets. I ran it, it seems to work, Axis (Linux CNC) doesn't break. Are there any restrictions on what can be used programmatically when writing drivers for Linux CNC?

Question 2.
Code:
int val = 1; int re = setsockopt(soc, SOL_PACKET, PACKET_QDISC_BYPASS, &val, sizeof(val)); This forces Linux to bypass qdisc (queue discipline). This affects Wireshark; it stops capturing incoming packets, but they are still there. Could this affect Linux CNC? The Linux CNC kernel?

Please Log in to join the conversation.

More
7 months 6 days ago #344670 by andypugh
Replied by andypugh on topic Linux cnc raw socket.
It might be safer to use an established interface to LinuxCNC, possibly modifying it for your needs.

linuxcnc.org/docs/stable/html/man/man1/linuxcncrsh.1.html
linuxcnc.org/docs/stable/html/man/man1/linuxcncsvr.1.html - this is not very informative...

Please Log in to join the conversation.

Time to create page: 0.068 seconds
Powered by Kunena Forum