iommufd_hwpt_nested_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… iommufd_hwpt_nested_alloc(9) β€” from the Kernel API Manual, bestie πŸŽ€

okay so you found the kernel API manual, and now you're staring at iommufd_hwpt_nested_alloc like πŸ‘€. don't worry, i got you. this is the whole page, nothing skipped, no cap.


✨ NAME ✨

iommufd_hwpt_nested_alloc β€” get a NESTED iommu_domain for a device πŸ¦‹


🌸 SYNOPSIS 🌸

struct iommufd_hwpt_nested * iommufd_hwpt_nested_alloc (struct
iommufd_ctx *ictx , struct iommufd_hwpt_paging *parent , struct
iommufd_device *idev , u32 flags , const struct iommu_user_data
*user_data );

like, that's the whole signature. it's giving "five arguments and a dream" πŸ’«


πŸŽ€ ARGUMENTS πŸŽ€

  • ictx β€” the iommufd context. your whole vibe's home base, basically.
  • parent β€” the parent PAGING-type hwpt you wanna associate the domain with. yes, "PAGING-type" is the exact kind β€” don't come at me with anything else.
  • idev β€” the device you're getting an iommu_domain for. the main character of this whole operation πŸ‘‘
  • flags β€” flags straight from userspace. their house, their rules.
  • user_data β€” the user_data pointer. must be valid, fr fr. no cute little NULL surprises, okay? 😭

πŸ’– DESCRIPTION πŸ’–

so what it does is: allocate a brand-new iommu_domain β€” and heads up, it must be IOMMU_DOMAIN_NESTED, that's not optional β€” and hand it back to you as a NESTED hw_pagetable. iconic behavior tbh.

also, the parent PAGING-type hwpt you pass in? it must be capable of being a parent β€” that's a requirement, not a suggestion. check before you ship it 🫢


πŸ”₯ SEE ALSO πŸ”₯


and that's the page, bestie! 🌈 this one's from ./drivers/iommu/iommufd, dated October 2026, and it's the iommufd_hwpt_nested_alloc(9) entry β€” slay, go forth and nest those domains πŸ’œβœ¨

πŸ“¦ where this page comes from