Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
trans_common.c File Reference
#include <linux/slab.h>
#include <linux/module.h>
#include <net/9p/9p.h>
#include <net/9p/client.h>
#include <linux/scatterlist.h>
#include "trans_common.h"

Go to the source code of this file.

Functions

void p9_release_pages (struct page **pages, int nr_pages)
 
 EXPORT_SYMBOL (p9_release_pages)
 
int p9_nr_pages (char *data, int len)
 
 EXPORT_SYMBOL (p9_nr_pages)
 
int p9_payload_gup (char *data, int *nr_pages, struct page **pages, int write)
 
 EXPORT_SYMBOL (p9_payload_gup)
 

Function Documentation

EXPORT_SYMBOL ( p9_release_pages  )
EXPORT_SYMBOL ( p9_nr_pages  )
EXPORT_SYMBOL ( p9_payload_gup  )
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.