You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When operating on external provided file descriptors it would be useful if it was possible to create a Memfd that does not
take ownership of the file descriptor.
For example in a graphics pipeline the file descriptor is transported in a separate structure that has the ownership of the
file descriptor. Within the pipeline a filter wants to operate on the file descriptor using Memfd.
Thanks for the suggestion. There are indeed a number of improvements that could be done around FD-handling. I'm personally waiting for the Rust io-safety work to stabilize first. Then the feature that you are looking for can be directly built with BorrowedFd. See https://rust-lang.github.io/rfcs/3128-io-safety.html#ownedfd-and-borrowedfdfd.
When operating on external provided file descriptors it would be useful if it was possible to create a
Memfd
that does nottake ownership of the file descriptor.
For example in a graphics pipeline the file descriptor is transported in a separate structure that has the ownership of the
file descriptor. Within the pipeline a filter wants to operate on the file descriptor using
Memfd
.The text was updated successfully, but these errors were encountered: