参照元

説明

引数

返り値

参考

実装

CONFIG_IOMMU_API 有効: drivers/iommu/iommu.c

/**
 * iommu_group_get - Return the group for a device and increment reference
 * @dev: get the group that this device belongs to
 *
 * This function is called by iommu drivers and users to get the group
 * for the specified device.  If found, the group is returned and the group
 * reference in incremented, else NULL.
 */
struct iommu_group *iommu_group_get(struct device *dev)
{
	struct iommu_group *group = dev->iommu_group;
	if (group)
		kobject_get(group->devices_kobj);
	return group;
}
EXPORT_SYMBOL_GPL(iommu_group_get);

CONFIG_IOMMU_API 無効: include/linux/iommu.h

static inline struct iommu_group *iommu_group_get(struct device *dev)
{
	return NULL;
}

コメント


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS