#include <linux/module.h>
#include <linux/blkdev.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/uaccess.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_eh.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_ioctl.h>
#include <scsi/scsi_dbg.h>
#include "scsi_logging.h"
#define IOCTL_NORMAL_TIMEOUT (10 * HZ)
#define MAX_BUF PAGE_SIZE
static int ioctl_probe(struct Scsi_Host *host, void __user *buffer)
if (get_user(len, (unsigned int __user *) buffer))
string = host->hostt->info(host);
string = host->hostt->name;
if (copy_to_user(buffer, string, len))