-
I found that both seem to register file descriptors belonging to |
Beta Was this translation helpful? Give feedback.
Answered by
axboe
Jan 5, 2025
Replies: 1 comment 4 replies
-
If |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Registering the ring fd itself is indeed like registering normal files. But it doesn't go into the same table (that would cause a dependency loop), and hence you cannot use it for io_uring operations - it is only valid for io_uring syscalls, like io_uring_enter and io_uring_register. It achieves the same for syscalls, avoiding putting/getting of the file descriptor.
Right, you need to pass in whether to use the registered ring fd to io_uring syscalls. To use it with io_uring_enter, you'd need …