Make a base class that can help with allocating fd-backed memory. Make dmabuf extend from the base class. We can now make methods to check if memory has an fd and get the fd for all the different types of fd-backed memory.
Make a base class that can help with allocating fd-backed memory. Make dmabuf extend from the base class. We can now make methods to check if memory has an fd and get the fd for all the different types of fd-backed memory.