2 ms·
O_SPECIFIED seems like a strange solution to me. Sure, I see why the kernel people wouldn't mind having people specify their own fd numbers, but doing the acco
by yxhuvud 7y ago
O_SPECIFIED seems like a strange solution to me.
Sure, I see why the kernel people wouldn't mind having people specify their own fd numbers, but doing the accounting necessary for that (to avoid conflicts) in userspace doesn't seem nice. Especially when there will be libraries that also may make use of the functionality.
Is there even any way to see what file descriptors that are open without doing a syscall?
- StrangeDoctor 7y agoIt looks like it’s intended to be used with a batched creation of file descriptors that are known to allocated but not yet used (to cut down on total syscalls?) https://lore.kernel.org/io-uring/20200211223235.GA25104@localhost/ https://lore.kernel.org/io-uring/20200211223235.GA25104@loca... At least I think I’m reading this correctly.