[[linux-4.4.1/arm_smmu_init()]]
*参照元 [#h83ef4de]
#backlinks

*説明 [#jc00ce0e]
-パス: [[linux-4.4.1/drivers/iommu/iommu.c]]

-FIXME: これは何?
--説明


**引数 [#ofcfe301]
-struct bus_type *bus
--
--[[linux-4.4.1/bus_type]]
-const struct iommu_ops *ops
--
--[[linux-4.4.1/iommu_ops]]


**返り値 [#f8fa5e78]
-int
--


**参考 [#r1a8aa12]


*実装 [#o4e1d6fb]
 /**
  * bus_set_iommu - set iommu-callbacks for the bus
  * @bus: bus.
  * @ops: the callbacks provided by the iommu-driver
  *
  * This function is called by an iommu driver to set the iommu methods
  * used for a particular bus. Drivers for devices on that bus can use
  * the iommu-api after these ops are registered.
  * This special function is needed because IOMMUs are usually devices on
  * the bus itself, so the iommu drivers are not initialized when the bus
  * is set up. With this function the iommu-driver can set the iommu-ops
  * afterwards.
  */
 int bus_set_iommu(struct bus_type *bus, const struct iommu_ops *ops)
 {
 	int err;
 
 	if (bus->iommu_ops != NULL)
 		return -EBUSY;
 
 	bus->iommu_ops = ops;
 
 	/* Do IOMMU specific setup for this bus-type */
 	err = iommu_bus_init(bus, ops);
 	if (err)
 		bus->iommu_ops = NULL;
 
-
--[[linux-4.4.1/iommu_bus_init()]]

 	return err;
 }
 EXPORT_SYMBOL_GPL(bus_set_iommu);
-
--[[linux-4.4.1/EXPORT_SYMBOL_GPL()]]


*コメント [#r01a6807]


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS