proc_info

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