参照元

説明

引数

返り値

参考

struct device の iommu_group を変更する関数

実装

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
Last-modified: 2017-11-29 (水) 11:16:28