On Mon, 26 Jun 2023, Theodore Preduta wrote:
Is it possible to create a vnode for a regular file in a file system
without linking the vnode to any directory, so that it disappears when
all open file descriptors to it are closed? (As far as I can tell, this
isn't possible with any of the vn_* or VOP_* functions?)
If this idea is indeed not possible, should/could I implement something
like this? (If so, how?)
You could extend what shm_open() currently does on NetBSD: create a
unique temp. file in /var/shm; immediately unlink it, return the fd.
-RVP