mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-15 19:56:03 +00:00
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: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
bfc0aa7a51
commit
0b6d253e08
2 changed files with 34 additions and 21 deletions
Loading…
Add table
Add a link
Reference in a new issue