linux-4.4.1/bus_set_iommu()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#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...
* used for a particular bus. Drivers for devices on tha...
* the iommu-api after these ops are registered.
* This special function is needed because IOMMUs are us...
* the bus itself, so the iommu drivers are not initiali...
* is set up. With this function the iommu-driver can se...
* afterwards.
*/
int bus_set_iommu(struct bus_type *bus, const struct iom...
{
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]
終了行:
*参照元 [#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...
* used for a particular bus. Drivers for devices on tha...
* the iommu-api after these ops are registered.
* This special function is needed because IOMMUs are us...
* the bus itself, so the iommu drivers are not initiali...
* is set up. With this function the iommu-driver can se...
* afterwards.
*/
int bus_set_iommu(struct bus_type *bus, const struct iom...
{
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]
ページ名: