by jzwinck · 6y ago · 0 comments
1. Enqueue A = openat(...)
2. Enqueue B = read(A, buf, sz)
3. Enqueue close(A)
4. Commit, return B to userspace
A and B are placeholders, and A is never known to userspace, it is simply chained within the enqueued commands.In the case of uring I suppose it is possible to link the calls to fail at the first failure.
That's what the min_fd patch is for, and potentially other systems for reserving blocks of fds. Much like memory, you'll ask the kernel for a block of it and then do your own allocations out of that.