SSC(4)

NAME
ssc - The `super scsi' driver

SYNOPSIS
pseudo-device ssc

DESCRIPTION
The ssc driver provides an access point into the SCSI driver code that can be used when no SCSI devices have previously been detected. This is useful for systems that contain only external SCSI devices that may be powered off at boot time.

The ‘scsi user’, or su(4) pseudo-device is used by ssc, and therefore must also be configured.

KERNEL CONFIGURATION
There are no configuration parameters for the ssc pseudo-device.

IOCTLS
The ssc driver has a single SCIOCADDR ioctl of it's own. This ioctl must be used after opening /dev/ssc and before issuing any other ioctl calls:

    #include <sys/scsiio.h>
    int
    ioctl(int fd, SCIOCADDR, struct scsi_addr *data)

Fd refers to the descriptor returned by open(2), and data must have the scbus, target and lun fields set as required. This ioctl may be used at will to change the device to which subsequent ioctls affect.

All other ioctls are passed directly to the su(4) pseudo-device driver, using the Bus, Target and Lun that were set with the last SCIOCADDR ioctl call.

FILES
/dev/ssc
    The device file used to access the ‘super scsi’ driver.

DIAGNOSTICS
If any ioctl is attempted before issuing a SCIOCADDR ioctl, ENXIO is returned. Otherwise, the ioctl is passed directly to the su(4) driver.

SEE ALSO
open(2), scsi(8), su(4)

HISTORY
The ssc driver originally appeared in FreeBSD 2.0.5.