iommufd_ctx_from_fd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is the iommufd_ctx_from_fd(9) page from the Kernel API Manual, and it's all about grabbing a reference to the iommufd context. yes, that's the whole assignment. 🫢

✨ SYNOPSIS ✨

struct iommufd_ctx * iommufd_ctx_from_fd (int fd );

πŸŽ€ ARGUMENTS πŸŽ€

  • fd β€” the file descriptor you're obtaining the reference from. that's the input, bestie πŸ’…

🌸 DESCRIPTION 🌸

If it works out, you get a pointer to the iommufd_ctx; if it doesn't, you get ERR_PTR instead. On success, the caller is responsible for calling iommufd_ctx_put β€” like, that's literally your cleanup era, do not skip it. 😭

πŸ‘‘ SEE ALSO πŸ‘‘


mwah πŸ’‹ source/version check: ./drivers/iommu/iommufd, dated October 2026, manual iommufd_ctx_from_fd(9). slay and hydrate. πŸ’–

πŸ“¦ where this page comes from