device_iommu_mapped(9)
π device_iommu_mapped(9) π
okay so this is a page from the Kernel API Manual β yes bestie, the kernel has manuals β and it's about one (1) little function that answers one (1) very important question. let's get into it π«Ά
β¨ NAME β¨
device_iommu_mapped β returns true when the device DMA is translated by an IOMMU
likeβ¦ that's literally the whole vibe check. is this device's DMA getting translated by an IOMMU or not. true or false. iconic. π
πΈ SYNOPSIS πΈ
bool device_iommu_mapped (struct device *dev );
that's it. that's the whole call. you hand it a struct device * and it hands you back a bool. no cap, it's giving "simple function, big responsibility." β¨
π¦ ARGUMENTS π¦
devβ the device you wanna perform the check on π this is your main character right here, the one getting inspected. pass the pointer, get your answer.
π SEE ALSO π
okay this list is long β like, "she really said 'and friends'" long β but every single one is here, no skipping, I promise π«Ά
Kernel file ./include/linux/device.h, plus:
struct subsys_interface(9)struct device_attribute(9)struct dev_ext_attribute(9)DEVICE_ATTR(9)DEVICE_ATTR_RW(9)DEVICE_ATTR_ADMIN_RW(9)DEVICE_ATTR_RW_NAMED(9)DEVICE_ATTR_RO(9)DEVICE_ATTR_ADMIN_RO(9)DEVICE_ATTR_RO_NAMED(9)DEVICE_ATTR_WO(9)DEVICE_ATTR_WO_NAMED(9)DEVICE_ULONG_ATTR(9)DEVICE_INT_ATTR(9)DEVICE_BOOL_ATTR(9)DEVICE_STRING_ATTR_RO(9)enum device_link_state(9)enum dl_dev_state(9)enum device_removable(9)struct dev_links_info(9)struct dev_msi_info(9)enum device_physical_location_panel(9)enum device_physical_location_vertical_position(9)enum device_physical_location_horizontal_position(9)struct device_physical_location(9)enum struct_device_flags(9)struct device(9)struct device_link(9)device_set_driver_override(9)device_has_driver_override(9)device_match_driver_override(9)dev_name(9)dev_bus_name(9)device_find_child_by_name(9)device_find_any_child(9)device_lock_set_class(9)device_lock_reset_class(9)
go read them. all of them. i'll wait. β
heads up bestie: the man page doesn't spell out any more behaviour than what's up there, so don't come for me asking for details that aren't in the source β I only report what the page says π
and that's the whole page!! short, sweet, and extremely to the point π§ the source path is ./include/linux and it's dated October 2026, and this whole adorable document is filed under device_iommu_mapped(9) β mwah, slay, periodt ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms