IoUringAssmEngn: map StagingBuff w/mmap; reg w/io_uring; add eventFd

StagingBuffer:
We now allocate memory with mmap(MAP_ANONYMOUS) so that we can be
sure it can be pinned with io_uring_register_buffers(). This
ensures that if DMA is possible, it should be usable.

	IoUringAssemblyEngine:
We now register an eventfd with io_uring so that we can listen
for CQEs with boost::asio.
This commit is contained in:
2025-11-05 15:34:23 -04:00
parent 0503705a13
commit 94982d50b9
4 changed files with 103 additions and 8 deletions
+2
View File
@@ -39,3 +39,5 @@
to the io_context of the thread it should post its callbacks to, and
then post callbacks to those io_contexts when UDP cmd responses
come in.
* Consider using MAP_HUGEPAGE with both PcloudStimBuff::StagingBuffer
and in the PcloudStimulusBuffer's ringbuff.