/usr/share/doc/HOWTO/ja-html/SCSI-Programming-HOWTO-6.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
<TITLE>The Linux SCSI programming HOWTO: $B%G%P%$%9%W%m%0%i%_%s%0$N35MW(B</TITLE>
<LINK HREF="SCSI-Programming-HOWTO-7.html" REL=next>
<LINK HREF="SCSI-Programming-HOWTO-5.html" REL=previous>
<LINK HREF="SCSI-Programming-HOWTO.html#toc6" REL=contents>
</HEAD>
<BODY>
<A HREF="SCSI-Programming-HOWTO-7.html">$B<!$N%Z!<%8(B</A>
<A HREF="SCSI-Programming-HOWTO-5.html">$BA0$N%Z!<%8(B</A>
<A HREF="SCSI-Programming-HOWTO.html#toc6">$BL\<!$X(B</A>
<HR>
<H2><A NAME="s6">6.</A> <A HREF="SCSI-Programming-HOWTO.html#toc6">$B%G%P%$%9%W%m%0%i%_%s%0$N35MW(B</A></H2>
<P>$B%X%C%@%U%!%$%k(B <CODE>include/scsi/sg.h</CODE> $B$O%$%s%?!<%U%'!<%9$N5-=R$r(B
$B4^$s$G$$$^$9(B($B%+!<%M%k%P!<%8%g%s(B 1.3.98 $B$K4p$E$$$F$$$^$9(B)$B!'(B</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
struct sg_header
{
int pack_len; /* $B$d$C$F$/$k%Q%1%C%HD9(B ($B%X%C%@9~$_(B) */
int reply_len; /* $B4|BT$5$l$k1~Ez$N:GBgD9(B */
int pack_id; /* $B%Q%1%C%H$N(B id $B%J%s%P!<(B */
int result; /* 0==ok, $B$=$l0J30$O(B errno $B%3!<%I$r;X<((B */
unsigned int twelve_byte:1;
/* $B%0%k!<%W(B 6 & 7 $B%3%^%s%I$KBP$7(B 12 $B%P%$%H%3%^%s%ID9$r6/@)(B */
unsigned int other_flags:31; /* $B>-MhMQ(B */
unsigned char sense_buffer[16]; /* read $B$K$h$C$F$N$_;HMQ$5$l$k(B */
/* $B%3%^%s%I$KB3$$$F%3%^%s%I$N$?$a$N%G!<%?(B(?) */
};
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B$3$N9=B$BN$O$I$N$h$&$K(B SCSI $B%3%^%s%I$,=hM}$5$l!"$^$?!"%3%^%s%I$N<B9T7k2L$r(B
$BJ];}$9$k6u4V$r;}$C$F$$$k$+$rI=$7$F$$$^$9!#(B
$B8D!9$N9=B$BN$N9=@.MWAG$K$D$$$F$O(B
<A HREF="SCSI-Programming-HOWTO-8.html#sec-header">sec-header</A>
$B>O$G8e$K5DO@$7$^$9!#(B</P>
<P>$BHFMQ%G%P%$%9$H%G!<%?$r8r49$9$kDL>o$NJ}K!$O0J2<$N$h$&$K$J$j$^$9!'(B
$B%*!<%W%s$7$?HFMQ%G%P%$%9$KBP$7%3%^%s%I$rAw$k$?$a$K(B
$B<!$N;0$D$NItJ,$r4^$`%V%m%C%/$r%G%P%$%9$KBP$7$F(B <CODE>write()</CODE> $B$7$^$9!#(B</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
struct sg_header
SCSI $B%3%^%s%I(B
$B%3%^%s%I$H0l=o$KAw$i$l$k$Y$-%G!<%?(B
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B%3%^%s%I$N7k2L$r3MF@$9$k$K$O!"$3$l(B($B$HF1MM$J(B)$B%V%m%C%/9=B$BN$rMQ$$$F%V%m%C%/$r(B
<CODE>read()</CODE> $B$7$^$9!#(B</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
struct sg_header
$B%G%P%$%9$+$i$d$C$FMh$k%G!<%?(B
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B$3$l$,=hM}2aDx$NDL>o$N35MW$G$9!#0J9_$N>O$G3F%9%F%C%W$r$b$C$H>\$7$/(B
$B5-=R$7$^$9!#(B</P>
<P>$BCm0U!':G6a$N%+!<%M%k%P!<%8%g%s$K;j$k$^$G!"(BSIGINT $B%7%0%J%k$r(B
<CODE>write()</CODE>$B$HBP1~$9$k(B<CODE>read()</CODE>$B$N8F$S=P$7$N4V$G%V%m%C%/$9$kI,MW$,$"(B
$B$j$^$7$?(B($B$D$^$j(B <CODE>sigprocmask()</CODE> $B$K$h$C$F(B)$B!#(B<CODE>write()</CODE> $BIt$+$i7k2L(B
$B$r<h$C$F$/$k$?$a$N(B <CODE>read()</CODE> $B$J$7$GI|5"$9$k$3$H$OB3$$$F5/$3$k%"%/%;(B
$B%9$r%V%m%C%/$9$k$3$H$K$J$j$^$9!#$3$N%7%0%J%k$N%V%m%C%/$O8+K\$N%3!<%I$K(B
$B$O4^$^$l$F$$$^$;$s!#$G$9$+$i$3$l$i$N8+K\$rAv$i$;$k:]$K$O(B SIGINT (a la
$B$,Lu$;$J$$(B^C )$B$rH/9T$9$k$Y$-$G$O$"$j$^$;$s!#(B</P>
<HR>
<A HREF="SCSI-Programming-HOWTO-7.html">$B<!$N%Z!<%8(B</A>
<A HREF="SCSI-Programming-HOWTO-5.html">$BA0$N%Z!<%8(B</A>
<A HREF="SCSI-Programming-HOWTO.html#toc6">$BL\<!$X(B</A>
</BODY>
</HTML>
|