Skip to content
systemcoding.dev

Snippets

Short posts that solve one thing: the code, the output we got, and why it works.

Networking

Queue a read with io_uring_prep_read

Queue an asynchronous file read with io_uring_prep_read in liburing 2.5 on Linux 6.8, submit it, and read the byte count from cqe->res.

1 min read
GPU

Declare a CUDA kernel with __global__

Mark a function __global__ in CUDA 12 so the host launches it and the device runs it, returning void, and see which qualifiers may call which.

1 min read

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.