iort_set_fwnode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ iort_set_fwnode(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– this one's called iort_set_fwnode, and it's literally the glow-up moment where an IORT thing gets its very own fwnode bestie. πŸŽ€


🌸 NAME 🌸

iort_set_fwnode β€” create an iort_fwnode and use it to register iommu data in the iort_fwnode_list πŸ¦‹

like yes, that's the whole job. make the thing, then use the thing to get your iommu data on the list. iconic behavior tbh.


🧚 SYNOPSIS 🧚

int iort_set_fwnode (struct acpi_iort_node *iort_node , struct fwnode_handle *fwnode );

πŸ’… ARGUMENTS πŸ’…

  • iort_node β€” the IORT table node that's associated with the IOMMU. that's its whole personality, it's the table node. 🫢
  • fwnode β€” the fwnode that's associated with the IORT node. they're a matching set, no cap. ✨

πŸ‘‘ RETURN πŸ‘‘

Returns 0 on success, and <0 on failure 😭 β€” so bestie, 0 is the slay outcome, anything negative is the vibe check failing. πŸ’€


🌈 SEE ALSO 🌈

kernel file ./drivers/acpi/arm64/iort.c (the source of truth, the main character πŸŽ€), plus the whole friend group:


πŸ’– reminder bestie: 0 = success, <0 = failure. don't forget to check the return value, that's the bare minimum. 😌

so yeah, that's the page!! brought to you straight from ./drivers/acpi/arm64, dated October 2026, and yeah the footer says iort_set_fwnode(9) because it's that girl. 🌟 mwah, go call it responsibly πŸ’œ

πŸ“¦ where this page comes from