#include <linux/module.h>
#include <linux/blkdev.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/kthread.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/init.h>
#include <linux/completion.h>
#include <linux/transport_class.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_transport.h>
#include "scsi_priv.h"
#include "scsi_logging.h"
Go to the source code of this file.
scsi_add_host_with_dma - add a scsi host with dma device : scsi host pointer to add : a struct device of type scsi class : dma device for the host
Note: You rarely need to worry about this unless you're in a virtualised host environments, so use the simpler scsi_add_host() function instead.
Return value: 0 on success / != 0 for error
Definition at line 200 of file hosts.c.
scsi_host_alloc - register a scsi host adapter instance. : pointer to scsi host template : extra bytes to allocate for driver
Note: Allocate a new Scsi_Host and perform basic initialization. The host is not published to the scsi midlayer until scsi_add_host is called.
Return value: Pointer to a new Scsi_Host
Definition at line 337 of file hosts.c.
scsi_host_set_state - Take the given host through the host state model. : scsi host to change the state of. : state to change to.
Returns zero if unsuccessful or an error if the requested transition is illegal.
Definition at line 66 of file hosts.c.
scsi_queue_work - Queue work to the Scsi_Host workqueue. : Pointer to Scsi_Host. : Work to queue for execution.
Return value: 1 - work queued for execution 0 - work is already queued -EINVAL - work queue doesn't exist
Definition at line 555 of file hosts.c.
scsi_remove_host - remove a scsi host : a pointer to a scsi host to remove
Definition at line 157 of file hosts.c.