#include <linux/device.h>
#include <linux/iommu.h>
#include <linux/init.h>
#include <linux/slab.h>
static struct attribute *devices_attr[] = …;
static const struct attribute_group devices_attr_group = …;
static const struct attribute_group *dev_groups[] = …;
static void release_device(struct device *dev)
{ … }
static struct class iommu_class = …;
static int __init iommu_dev_init(void)
{ … }
postcore_initcall(iommu_dev_init);
int iommu_device_sysfs_add(struct iommu_device *iommu,
struct device *parent,
const struct attribute_group **groups,
const char *fmt, ...)
{ … }
EXPORT_SYMBOL_GPL(…);
void iommu_device_sysfs_remove(struct iommu_device *iommu)
{ … }
EXPORT_SYMBOL_GPL(…);
int iommu_device_link(struct iommu_device *iommu, struct device *link)
{ … }
void iommu_device_unlink(struct iommu_device *iommu, struct device *link)
{ … }