.\" 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" "" "06 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 rpc_cred * \fIcred\fB, struct inode * \fIinode\fB, struct page * \fIpage\fB, unsigned int \fIoffset\fB, unsigned int \fIcount\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIcred\fB\fR
RPC credential to use
.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.