105 lines
3.2 KiB
Groff
105 lines
3.2 KiB
Groff
|
.\" %Id: ssc.4,v 1.2 1998/08/31 16:41:07 wosch Exp %
|
|||
|
.\" jpman %Id: ssc.4,v 1.3 2000/08/10 13:48:27 horikawa Stab %
|
|||
|
.\"
|
|||
|
.\" Copyright (c) 1997 Brian Somers <brian@Awfulhak.org>
|
|||
|
.\" All rights reserved.
|
|||
|
.\"
|
|||
|
.\" Redistribution and use in source and binary forms, with or without
|
|||
|
.\" modification, are permitted provided that the following conditions
|
|||
|
.\" are met:
|
|||
|
.\" 1. Redistributions of source code must retain the above copyright
|
|||
|
.\" notice, this list of conditions and the following disclaimer.
|
|||
|
.\"
|
|||
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|||
|
.\" notice, this list of conditions and the following disclaimer in the
|
|||
|
.\" documentation and/or other materials provided with the distribution.
|
|||
|
.\"
|
|||
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|||
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|||
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|||
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|||
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|||
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|||
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|||
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|||
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|||
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|||
|
.\" SUCH DAMAGE.
|
|||
|
.\"
|
|||
|
.Dd December 29, 1997
|
|||
|
.Dt SSC 4
|
|||
|
.Os FreeBSD
|
|||
|
.Sh ̾<EFBFBD><EFBFBD>
|
|||
|
.Nm ssc
|
|||
|
.Nd `<60><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> SCSI' <EFBFBD>ɥ饤<EFBFBD><EFBFBD>
|
|||
|
.Sh <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
.Cd "pseudo-device ssc"
|
|||
|
.Sh <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
.Nm
|
|||
|
<EFBFBD>ɥ饤<EFBFBD>Фϡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> SCSI <20>ǥХ<C7A5><D0A5><EFBFBD><EFBFBD><EFBFBD> 1 <20>Ĥ⸡<C4A4>Ф<EFBFBD><D0A4><EFBFBD><EFBFBD>ʤ<EFBFBD><CAA4>ä<EFBFBD><C3A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˻<EFBFBD><CBBB>Ѥ<EFBFBD><D1A4><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD><EFBFBD><EFBFBD>SCSI <20>ɥ饤<C9A5>ФΥ<D0A4><CEA5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><F3B6A1A4>ޤ<EFBFBD><DEA4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϡ<EFBFBD><CFA1><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
SCSI <20>ǥХ<C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ƤϤ<C6A4><CFA4><EFBFBD><EFBFBD>ޤ<EFBFBD><DEA4><EFBFBD>:
|
|||
|
.Bd -literal -offset indent
|
|||
|
.Fd #include <sys/scsiio.h>
|
|||
|
|
|||
|
.Ft int
|
|||
|
.Fn ioctl "int fd" "SCIOCADDR" "struct scsi_addr *data"
|
|||
|
.Ed
|
|||
|
.Pp
|
|||
|
.Ar fd
|
|||
|
<EFBFBD>ϡ<EFBFBD>
|
|||
|
.Xr open 2
|
|||
|
<EFBFBD><EFBFBD><EFBFBD>֤<EFBFBD><EFBFBD><EFBFBD><EFBFBD>̻Ҥ<EFBFBD>ɽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
.Ar data
|
|||
|
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˹<EFBFBD><EFBFBD>碌<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ꤵ<EFBFBD>줿
|
|||
|
.Ar scbus ,
|
|||
|
.Ar target ,
|
|||
|
.Ar lun
|
|||
|
<EFBFBD>ե<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>äƤ<EFBFBD><EFBFBD>ʤ<EFBFBD><EFBFBD>ƤϤʤ<EFBFBD><EFBFBD>ޤ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ioctl <20>ϡ<EFBFBD><CFA1><EFBFBD><EFBFBD>˸ƤФ<C6A4><D0A4><EFBFBD> ioctl <20><>
|
|||
|
<EFBFBD>ƶ<EFBFBD><EFBFBD><EFBFBD>Ϳ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǥХ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǥ<EFBFBD>դ<EFBFBD><EFBFBD>ѹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>뤿<EFBFBD><EFBFBD><EFBFBD>˻<EFBFBD><EFBFBD>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