The memory for the submission queue is mmapd into user space. Easiest implementation to read is the Zig stdlib:
https://github.com/ziglang/zig/blob/69cf40da600224734d39c6f6...