参照元

説明

引数

返り値

参考

実装

CONFIG_IOMMU_API 有効: drivers/iommu/iommu.c

struct iommu_domain *iommu_get_domain_for_dev(struct device *dev)
{
	struct iommu_domain *domain;
	struct iommu_group *group;
	group = iommu_group_get(dev);
	/* FIXME: Remove this when groups a mandatory for iommu drivers */
	if (group == NULL)
		return NULL;
	domain = group->domain;

	iommu_group_put(group);
	return domain;
}
EXPORT_SYMBOL_GPL(iommu_get_domain_for_dev);

CONFIG_IOMMU_API 無効: include/linux/iommu.h

static inline struct iommu_domain *iommu_get_domain_for_dev(struct device *dev)
{
	return NULL;
}

コメント


トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2017-11-29 (水) 11:10:36