Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
trans_common.h File Reference

Go to the source code of this file.

Functions

void p9_release_pages (struct page **, int)
 
int p9_payload_gup (char *, int *, struct page **, int)
 
int p9_nr_pages (char *, int)
 

Function Documentation

int p9_nr_pages ( char data,
int  len 
)

p9_nr_pages - Return number of pages needed to accommodate the payload.

Definition at line 38 of file trans_common.c.

int p9_payload_gup ( char data,
int nr_pages,
struct page **  pages,
int  write 
)

payload_gup - Translates user buffer into kernel pages and pins them either for read/write through get_user_pages_fast(). : Request to be sent to server. : data offset into the first page after translation (gup). : Total length of the IO. gup may not return requested # of pages. : number of pages to accommodate the payload : Indicates if the pages are for read or write.

Definition at line 57 of file trans_common.c.

void p9_release_pages ( struct page **  pages,
int  nr_pages 
)

p9_release_req_pages - Release pages after the transaction.

Definition at line 25 of file trans_common.c.