Linux cnc raw socket.
- BIBIGUL
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
14 Mar 2026 17:16 - 14 Mar 2026 17:26 #344263
by BIBIGUL
Linux cnc raw socket. was created 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.
Question 2.
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?
Last edit: 14 Mar 2026 17:26 by BIBIGUL.
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 19833
- Thank you received: 4625
24 Mar 2026 12:42 #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...
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 or Create an account to join the conversation.
Time to create page: 0.114 seconds