PROC_INFO

Section: (9)
Updated: 17 July 2003
Index Return to Main Contents

 

NAME

proc_info - supports /proc/scsi/{driver_name}/{host_no}  

SYNOPSIS

int proc_info (char * buffer, char ** start, off_t offset, int length, int hostno, int writeto1_read0);  

ARGUMENTS

buffer
anchor point to output to (0==writeto1_read0) or fetch from (1==writeto1_read0).
start
where ``interesting'' data is written to. Ignored when 1==writeto1_read0.
offset
offset within buffer 0==writeto1_read0 is actually interested in. Ignored when 1==writeto1_read0 .
length
maximum (or actual) extent of buffer
hostno
-- undescribed --
writeto1_read0
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'')
 

DESCRIPTION

Returns length when 1==writeto1_read0. Otherwise number of chars output to buffer past offset.  

REQUIRED

no  

LOCKS

none held  

NOTES

Driven from scsi_proc.c which interfaces to proc_fs  

DEFINED IN

LLD  

ABOUT THIS DOCUMENT

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".

If you have comments on the formatting of this manpage, then please contact Michael Still (mikal@stillhq.com).

This documentation was generated with kernel version 2.5.72.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
REQUIRED
LOCKS
NOTES
DEFINED IN
ABOUT THIS DOCUMENT

This document was created by man2html, using the manual pages.
Time: 02:50:05 GMT, July 17, 2003