.\" 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 "NFS_CREATE_REQUEST" "9" "09 October 2005" "" ""
.SH NAME
nfs_create_request \- Create an NFS read/write request.
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
struct nfs_page * nfs_create_request (struct nfs_open_context * \fIctx\fB, struct inode * \fIinode\fB, struct page * \fIpage\fB, unsigned int \fIoffset\fB, unsigned int \fIcount\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIctx\fB\fR
-- undescribed --
.TP
\fB\fIinode\fB\fR
inode to which the request is attached
.TP
\fB\fIpage\fB\fR
page to write
.TP
\fB\fIoffset\fB\fR
starting offset within the page for the write
.TP
\fB\fIcount\fB\fR
number of bytes to read/write
.SH "DESCRIPTION"
.PP
The page must be locked by the caller. This makes sure we never
create two different requests for the same page, and avoids
a possible deadlock when we reach the hard limit on the number
of dirty pages.
User should ensure it is safe to sleep in this function.