Skip to content
Snippets Groups Projects
Commit 0b6d253e authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring/register: provide helper to get io_ring_ctx from 'fd'


Can be done in one of two ways:

1) Regular file descriptor, just fget()
2) Registered ring, index our own table for that

In preparation for adding another register use of needing to get a ctx
from a file descriptor, abstract out this helper and use it in the main
register syscall as well.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent bfc0aa7a
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment