]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Add for_each_device_domain() helper
authorLu Baolu <baolu.lu@linux.intel.com>
Sat, 14 Jul 2018 07:46:58 +0000 (15:46 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 20 Jul 2018 12:44:24 +0000 (14:44 +0200)
commitbecc9e4b8c44c05272ed9693dd3a16c3fd77cecf
tree83b5de3dfe789b170a7e6b4f5fc377f89c60b028
parent6c2d847f9ca69314fe608a154547e8f5e00bd2bf
iommu/vt-d: Add for_each_device_domain() helper

This adds a helper named for_each_device_domain() to iterate
over the elements in device_domain_list and invoke a callback
against each element. This allows to search the device_domain
list in other source files.

Cc: Ashok Raj <ashok.raj@intel.com>
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Cc: Kevin Tian <kevin.tian@intel.com>
Cc: Liu Yi L <yi.l.liu@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Liu Yi L <yi.l.liu@intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c
include/linux/intel-iommu.h