Annotation of lucent/sys/man/3/scsi, revision 1.1.1.1

1.1       root        1: .TH SCSI 3 
                      2: .SH NAME
                      3: scsi \- SCSI command interface
                      4: .SH SYNOPSIS
                      5: .nf
                      6: .B bind #S /dev
                      7: 
                      8: .B /dev/scsiid
                      9: .B /dev/0/cmd
                     10: .B /dev/0/data
                     11: .B /dev/0/debug
                     12: \&...
                     13: .fi
                     14: .SH DESCRIPTION
                     15: .PP
                     16: The
                     17: .I scsi
                     18: interface is accessed through a two-level directory.
                     19: The
                     20: .B scsiid
                     21: file contains the
                     22: .SM SCSI
                     23: id of the host interface, typically 7, represented textually.
                     24: Some implementations allow this to be changed by writing to the file;
                     25: in many cases, the higher-order bits are hardware specific.
                     26: .PP
                     27: Each
                     28: .SM SCSI
                     29: target
                     30: .I n
                     31: .RI "(0≤" n "≤7)"
                     32: is associated with a subdirectory
                     33: .BI "#S/" n
                     34: containing files
                     35: .BR cmd ,
                     36: .BR data ,
                     37: and
                     38: .BR debug .
                     39: The following steps may be used to execute a
                     40: .SM SCSI
                     41: command:
                     42: .IP
                     43: The command block is written to the
                     44: .B cmd
                     45: file.
                     46: .IP
                     47: The
                     48: .B data
                     49: file is either written or read depending on
                     50: the direction of the transfer.  (A command that involves no data transfer
                     51: is executed with a zero-length write.)
                     52: .IP
                     53: The
                     54: .B cmd
                     55: file is read to retrieve the status of the command,
                     56: returned as a 4-byte big-endian integer.
                     57: .PP
                     58: Writing an
                     59: .SM ASCII
                     60: .L 1
                     61: to the
                     62: .B debug
                     63: file causes tracing information to be written to
                     64: .BR /dev/klog ;
                     65: writing a
                     66: .L 0
                     67: turns the tracing off.
                     68: .PP
                     69: .SH SEE ALSO
                     70: .IR wren (3)
                     71: .SH SOURCE
                     72: .B /sys/src/9/port/devscsi.c
                     73: .br
                     74: .B /sys/src/9/*/scsi.c

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.