227,510 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
31
views
Using GTK in Mojo [closed]
I am trying to figure out if theres a way to use GTK (for GUI development) in the Mojo programming language.
So far, I havent been able to find any documentation, tutorials, or examples showing how ...
0
votes
0
answers
43
views
infinite loop while wrriting simple sub routine for outputing a string without stack in x86-64
i had a sub routine for printing a string dynamically, without manually listing the length of the string in x86-64 intel style through following code (with stack) :-
section .data
output1 db "...
1
vote
1
answer
75
views
How to make C shell exit immediately on Ctrl+D (EOF) when the buffer contains text?
I am writing a simple shell in C on Linux. My goal is to handle the Ctrl+D (EOF) signal such that if the user types a command (e.g., ls) and presses Ctrl+D, the shell exits immediately without running ...
0
votes
0
answers
52
views
FLTK/Wayland/X11 custom drawing in a pop-up window
This question relates to a long standing open source application that has an FLTK UI and uses Cairo for custom drawing in various places. With FLTK 1.4, there is now a hybrid Wayland/X11 backend. We ...
0
votes
1
answer
107
views
C program gets stuck while executing [closed]
I have a C program and I'm using Meson+Ninja to build it.
project('NESt', 'c')
source_files=files('src/main.c',
'src/App.h', 'src/App.c',
'src/Emulator.h', 'src/Emulator.c',
'src/Mapper.h'...
0
votes
0
answers
140
views
File IO in C++ (or C) without the overhead of copying between two buffers with Linux Systems [closed]
I'm interested to understand more about performing file IO operations with systems programming languages in a way which does not use both a kernel space buffer and a user space buffer.
Specifically I ...
2
votes
1
answer
58
views
Handshake fails with RST after destination address modification of TCP packets in Netfilter hooks
I am implementing a destination NAT-like behavior by hooking into NF_INET_PRE_ROUTING and NF_INET_LOCAL_OUT to modify the destination IP address and recalculate the checksums.
nf_tracer_handler(void *...
0
votes
0
answers
29
views
No gcc compiling log "CC [M] " showing up when build external modules using linux rpi-5.10.y
environment
OS: Arch Linux x86_64
Host: Windows Subsystem for Linux - archlinux (2.6.2.0)
Kernel: Linux 6.6.87.2-microsoft-standard-WSL2
compiler: aarch64-linux-gnu-gcc 15.1.0 Using built-in specs.
...
Advice
0
votes
2
replies
37
views
can I use dup2() to send output to stdout instead of a Unix Domain Socket?
It's seems easy to find examples of using dup2() to cause output (originally) intended for stdout to instead go to a socket:
char *stdoutMsg = "This message will be sent to stdout\n";
write(...
3
votes
2
answers
125
views
Question about retry logic in usb-skeleton.c skel_read()
I'm a computer science undergraduate student studying Linux kernel USB device drivers.
While analyzing the skel_read() function in usb-skeleton.c, I noticed what seems like inconsistent retry logic. I'...
0
votes
0
answers
76
views
`btvirt` (virtualized BlueTooth) with TrouBLE [closed]
Desired behavior
Have the central make a connection with the peripheral.
The "trouBLE" I run in to
The central code returns directly a BleHost(Timeout) error, even with adjusted settings
I'...
3
votes
1
answer
119
views
Java shell pipeline: `head` command doesn't output lines until it receives the expected number, even with `tail -f`
I'm building a shell in Java and currently implementing pipeline logic. For inter-process communication, I've created this class:
public class PipeConnector implements Runnable {
private final ...
Best practices
0
votes
2
replies
129
views
Can Linux kernel software mechanisms track the sequence of accessed memory pages, or is hardware support required?
I want to generate a memory access trace in Linux where every fixed number of memory accesses (e.g., every 32 accesses) are grouped and recorded as one batch. Is it possible to implement this kind of "...
3
votes
1
answer
99
views
Unexpectedly poor performance of io_uring for multiple TCP socket writes
I am looking for some guidance on using io_uring for high-fan-out TCP writes.
I have a Rust application that waits for an event in a tight loop. Whenever the event occurs, the same payload needs to be ...
Best practices
1
vote
0
replies
45
views
Test a kernel driver in QEMU
How should I test a Linux kernel driver, without a real device. It is not a device that QEMU supports(in my case, it's drivers/tty/serial/digicolor-usart.c).
Gemini told me I can modify the source ...