aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorRobin Murphy <[email protected]>2023-11-21 18:03:57 +0000
committerJoerg Roedel <[email protected]>2023-11-27 11:03:13 +0100
commit48ed12788ed8aa099e463c2febcd3f06fb71c68c (patch)
treeb5f98d55fce98c68f6e0a7b032054cebfb9dafa2 /scripts/gdb/linux/utils.py
parentf1aad9df93f39267e890836a28d22511f23474e1 (diff)
iommu: Factor out some helpers
The pattern for picking the first device out of the group list is repeated a few times now, so it's clearly worth factoring out, which also helps hide the iommu_group_dev detail from places that don't need to know. Similarly, the safety check for dev_iommu_ops() at certain public interfaces starts looking a bit repetitive, and might not be completely obvious at first glance, so let's factor that out for clarity as well, in preparation for more uses of both. Reviewed-by: Lu Baolu <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Reviewed-by: Jerry Snitselaar <[email protected]> Signed-off-by: Robin Murphy <[email protected]> Link: https://lore.kernel.org/r/566cbd161546caa6aed49662c9b3e8f09dc9c3cf.1700589539.git.robin.murphy@arm.com Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions