Table of Contents
Main file for the SCSI midlayer.
SCSI Common Access Method support functions, for use with HDIO_GETGEO, etc.
Common SCSI error/timeout handling routines.
Manage scsi_dev_info_list, which tracks blacklisted and whitelisted devices.
Handle ioctl() calls for SCSI devices.
SCSI queuing library.
SCSI library functions depending on DMA (map and unmap scatter-gather lists).
The file drivers/scsi/scsi_module.c contains legacy support for old-style host templates. It should never be used by any new driver.
proc_info
command
proc_info
The functions in this file provide an interface between the PROC file system and the SCSI device drivers It is mainly used for debugging, statistics and to pass information directly to the lowlevel driver. I.E. plumbing to manage /proc/scsi/*
Infrastructure to provide async events from transports to userspace via netlink, using a single NETLINK_SCSITRANSPORT protocol for all transports. See the original patch submission for more details.
Scan a host to determine which (if any) devices are attached. The general scanning/probing algorithm is as follows, exceptions are made to it depending on device specific flags, compilation options, and global variable (boot or module load time) settings. A specific LUN is scanned via an INQUIRY command; if the LUN has a device attached, a scsi_device is allocated and setup for it. For every id of every channel on the given host, start by scanning LUN 0. Skip hosts that don't respond at all to a scan of LUN 0. Otherwise, if LUN 0 has a device attached, allocate and setup a scsi_device for it. If target is SCSI-3 or up, issue a REPORT LUN, and scan all of the LUNs returned by the REPORT LUN; else, sequentially scan LUNs up until some maximum is reached, or a LUN is seen that cannot have a device attached to it.
Set up the sysctl entry: "/dev/scsi/logging_level" (DEV_SCSI_LOGGING_LEVEL) which sets/returns scsi_logging_level.
SCSI sysfs interface routines.
mid to lowlevel SCSI driver interface
mid to lowlevel SCSI driver interface