.\" 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 "WRITE_PAGES" "" "06 October 2005" "" ""
.SH NAME
write_pages \- write block of data to device via the page cache
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int write_pages (struct blkmtd_dev * \fIdev\fB, const u_char * \fIbuf\fB, loff_t \fIto\fB, size_t \fIlen\fB, size_t * \fIretlen\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIdev\fB\fR
device to write to
.TP
\fB\fIbuf\fB\fR
data source or NULL if erase (output is set to 0xff)
.TP
\fB\fIto\fB\fR
offset into output device
.TP
\fB\fIlen\fB\fR
amount to data to write
.TP
\fB\fIretlen\fB\fR
amount of data written
.SH "DESCRIPTION"
.PP
Grab pages from the page cache and fill them with the source data.
Non page aligned start and end result in a readin of the page and
part of the page being modified. Pages are added to the bio and then written
out.