.\" This documentation was generated from the book titled "SCSI Subsystem Interfaces", which is part of the Linux kernel source. .\" .\" Documentation by: Douglas Gilbert (dgilbert@interlog.com) .\" Documentation copyright: 2002 2003 Douglas Gilbert .\" This documentation comes with the following legal notice: .\" .\" This documentation is free software; you can redistribute .\" it and/or modify it under the terms of the GNU General Public .\" License as published by the Free Software Foundation; either .\" version 2 of the License, or (at your option) any later .\" version. .\" .\" This program is distributed in the hope that it will be .\" useful, but WITHOUT ANY WARRANTY; without even the implied .\" warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. .\" See the GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public .\" License along with this program; if not, write to the Free .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, .\" MA 02111-1307 USA .\" .\" For more details see the file COPYING in the source .\" distribution of Linux. .\" .\" For comments on the formatting of this manpage, please contact Michael Still .\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "PROC_INFO" "9" "09 April 2004" "" "" .SH NAME proc_info \- supports /proc/scsi/{driver_name}/{host_no} .SH SYNOPSIS .sp \fB .sp int proc_info (char * \fIbuffer\fB, char ** \fIstart\fB, off_t \fIoffset\fB, int \fIlength\fB, int \fIhostno\fB, int \fIwriteto1_read0\fB); \fR .SH "ARGUMENTS" .TP \fB\fIbuffer\fB\fR anchor point to output to (0==writeto1_read0) or fetch from (1==writeto1_read0). .TP \fB\fIstart\fB\fR where ``interesting'' data is written to. Ignored when 1==writeto1_read0. .TP \fB\fIoffset\fB\fR offset within buffer 0==writeto1_read0 is actually interested in. Ignored when 1==writeto1_read0 . .TP \fB\fIlength\fB\fR maximum (or actual) extent of buffer .TP \fB\fIhostno\fB\fR -- undescribed -- .TP \fB\fIwriteto1_read0\fB\fR 1 -> data coming from user space towards driver (e.g. ``echo some_string > /proc/scsi/xyz/2'') 0 -> user what data from this driver (e.g. ``cat /proc/scsi/xyz/2'') .SH "DESCRIPTION" .PP Returns length when 1==writeto1_read0. Otherwise number of chars output to buffer past offset. .SH "LOCKS" .PP none held .SH "CALLING CONTEXT" .PP process .SH "NOTES" .PP Driven from scsi_proc.c which interfaces to proc_fs. proc_fs support can now be configured out of the scsi subsystem. .SH "OPTIONALLY DEFINED IN" .PP LLD .SH "ABOUT THIS DOCUMENT" .PP This documentation was generated with kernel version 2.6.0.