Skip to content

fix: make io_uring_queue_init_mem usable from Python (#30) #31

Open
meshya wants to merge 4 commits into
YoSTEALTH:devfrom
meshya:master
Open

fix: make io_uring_queue_init_mem usable from Python (#30) #31
meshya wants to merge 4 commits into
YoSTEALTH:devfrom
meshya:master

Conversation

@meshya

@meshya meshya commented Jul 22, 2026

Copy link
Copy Markdown
  • class.zig — add Param.__new__(flags) / __del__.
  • uring.zig — rewrite as internal _io_uring_queue_init_mem
  • root.zig — register _io_uring_queue_init_mem.
  • uring.py — Python layer exposing the public io_uring_queue_init_mem.
  • init.py — import from uring.py.
  • conftest.py — parametrize the ring initial over both io_uring_queue_init and io_uring_queue_init_mem.
  • init_exit_test.py — dedicated test_io_uring_init_mem.
  • send_recv_test.py — test io_uring_prep_recv & io_uring_prep_send.

@YoSTEALTH

Copy link
Copy Markdown
Owner

First of all thank you very much for writing this PR.

  • Would you mind uploading it to dev branch, so I can download and test it. After I should be able to merge it to "main" (I think!)
  • It would be better to keep send_recv_test.py separate as you already submitted it before, just reopen that PR (maybe move it to dev as well).

Sorry for really slow reply I am mostly away from coding over the summer time.

meshya added 4 commits July 24, 2026 01:15
`queue_init_mem` needs a page-aligned & zeroed buffer as it explained in man pages.
refactor `queue_init_mem` how it accepts python's std `mmap.mmap` as buf.
@meshya
meshya changed the base branch from main to dev July 23, 2026 21:49
@meshya

meshya commented Jul 23, 2026

Copy link
Copy Markdown
Author

Thanks for your reply.
PR rebaced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants