Skip to content

Support for io_uring #4636

@sugarraysam

Description

@sugarraysam

Hello, as titled I am running into unsupported syscall error in my project, where I do use io_uring.

// from kernel - 425 maps to `io_uring_setup`
uapi/asm-generic/unistd.h
759:#define __NR_io_uring_setup 425
760:__SYSCALL(__NR_io_uring_setup, sys_io_uring_setup)

// Error log from miri
$ cargo +nightly test miri` test runtime::cancel::tests::test_cancel_timeout_multishot ... error: unsupported operation: syscall: unsupported syscall number 425
   --> /home/doodly/opt/io-uring/src/sys/mod.rs:115:15
    |
115 |     to_result(syscall(SYSCALL_SETUP, entries as c_long, p as c_long) as _)
    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsupported operation occurred here

I tried digging into the codebase, and am finding the syscall() function in src/shims/unix/linux_like/syscall.rs, but could not decipher exactly the path ahead to adding support for this syscall.

Thank you for the help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-shimsArea: This affects the external function shimsC-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions