PROC_INFO

Section: (9)
Updated: 09 April 2004
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.  

LOCKS

none held  

CALLING CONTEXT

process  

NOTES

Driven from scsi_proc.c which interfaces to proc_fs. proc_fs support can now be configured out of the scsi subsystem.  

OPTIONALLY DEFINED IN

LLD  

ABOUT THIS DOCUMENT

This documentation was generated with kernel version 2.6.0.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
LOCKS
CALLING CONTEXT
NOTES
OPTIONALLY DEFINED IN
ABOUT THIS DOCUMENT

This document was created by man2html, using the manual pages.
Time: 12:49:31 GMT, April 09, 2004