#include <linux/device.h>
#include <linux/file.h>
#include <linux/kthread.h>
#include <linux/module.h>
#include "usbip_common.h"
#include "stub.h"
static ssize_t usbip_status_show(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static DEVICE_ATTR_RO(usbip_status);
static ssize_t usbip_sockfd_store(struct device *dev, struct device_attribute *attr,
const char *buf, size_t count)
{ … }
static DEVICE_ATTR_WO(usbip_sockfd);
static struct attribute *usbip_attrs[] = …;
ATTRIBUTE_GROUPS(…);
static void stub_shutdown_connection(struct usbip_device *ud)
{ … }
static void stub_device_reset(struct usbip_device *ud)
{ … }
static void stub_device_unusable(struct usbip_device *ud)
{ … }
static struct stub_device *stub_device_alloc(struct usb_device *udev)
{ … }
static void stub_device_free(struct stub_device *sdev)
{ … }
static int stub_probe(struct usb_device *udev)
{ … }
static void shutdown_busid(struct bus_id_priv *busid_priv)
{ … }
static void stub_disconnect(struct usb_device *udev)
{ … }
#ifdef CONFIG_PM
static int stub_suspend(struct usb_device *udev, pm_message_t message)
{ … }
static int stub_resume(struct usb_device *udev, pm_message_t message)
{ … }
#endif
struct usb_device_driver stub_driver = …;