do_nfs_direct_IO

Section: ()
Updated: 06 October 2005
Index Return to Main Contents

 

NAME

do_nfs_direct_IO - Read or write data without caching  

SYNOPSIS

"SYNOPSIS"

int do_nfs_direct_IO (int rw, const struct inode * inode, const struct rpc_cred * cred, const struct iovec * iov, loff_t offset, unsigned long nr_segs);  

ARGUMENTS

rw
-- undescribed --
inode
inode of target file
cred
credentials of user who requested I/O
iov
array of vectors that define I/O buffer
offset
-- undescribed --
nr_segs
-- undescribed --
 

OFFSET

where in file to begin the read  

NR_SEGS

size of iovec array

Break the passed-in iovec into a series of page-sized or smaller requests, where each page is mapped for direct user-land I/O.

For each of these pages, create an NFS page request and append it to an automatic list of page requests.

When all page requests have been queued, start the I/O on the whole list. The underlying routines coalesce the pages on the list into a bunch of asynchronous ``r/wsize'' network requests.

I/O completion automatically unmaps and releases the pages.


 

Index

NAME
SYNOPSIS
ARGUMENTS
OFFSET
NR_SEGS

This document was created by man2html, using the manual pages.
Time: 04:40:42 GMT, October 06, 2005