Skip to content

io_uring_queue_init_mem is unusable from Python #30

Description

@meshya

Current wrapper marked as not tested, while it can not called from Python:

  1. Param class (class.zig ) has no __new__ and _io_uring_params will not initialize.
  2. A pointer to huge page ( which needed to supply as buf ) cannot created in python. A bytesarray does not satisfy this.
  3. No strategy to free this buffer in io_uring_queue_exit or Ring.__del__.

What to do?

I think we can add a param to Ring which holds pointer to buffer. and initialize buffer in io_uring_queue_init_mem wrapper.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions