.\" 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 "IBM_READ_APCI_TABLE" "9" "09 October 2005" "" ""
.SH NAME
ibm_read_apci_table \- callback for the sysfs apci_table file
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
ssize_t ibm_read_apci_table (struct kobject * \fIkobj\fB, char * \fIbuffer\fB, loff_t \fIpos\fB, size_t \fIsize\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIkobj\fB\fR
the kobject this binary attribute is a part of
.TP
\fB\fIbuffer\fB\fR
the kernel space buffer to fill
.TP
\fB\fIpos\fB\fR
the offset into the file
.TP
\fB\fIsize\fB\fR
the number of bytes requested
.SH "DESCRIPTION"
.PP
gets registered with sysfs as the reader callback
to be executed when /sys/bus/pci/slots/apci_table gets read
.PP
Since we don't get notified on open and close for this file,
things get really tricky here...
our solution is to only allow reading the table in all at once