Skip to content

Question about IORING_FEAT_LINKED_FILE #1312

Answered by isilence
realwakka asked this question in Q&A
Discussion options

You must be logged in to vote

Note that the flag, just as all other `IORING_FEAT*" flags, is set by the kernel to inform the user space about the behaviour, not the other way around. In other words, you can check it if you need the behaviour, but the user space doesn't control it.

struct io_uring_params params;
io_uring_queue_init_params(..., &params);

if (params.features & IORING_FEAT_LINKED_FILE) {
    // do linked open + read
} else {
    // don't use links
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@realwakka
Comment options

Answer selected by realwakka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants