Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
socklib.c File Reference
#include <linux/compiler.h>
#include <linux/netdevice.h>
#include <linux/gfp.h>
#include <linux/skbuff.h>
#include <linux/types.h>
#include <linux/pagemap.h>
#include <linux/udp.h>
#include <linux/sunrpc/xdr.h>
#include <linux/export.h>

Go to the source code of this file.


size_t xdr_skb_read_bits (struct xdr_skb_reader *desc, void *to, size_t len)
 EXPORT_SYMBOL_GPL (xdr_skb_read_bits)
ssize_t xdr_partial_copy_from_skb (struct xdr_buf *xdr, unsigned int base, struct xdr_skb_reader *desc, xdr_skb_read_actor copy_actor)
 EXPORT_SYMBOL_GPL (xdr_partial_copy_from_skb)
int csum_partial_copy_to_xdr (struct xdr_buf *xdr, struct sk_buff *skb)
 EXPORT_SYMBOL_GPL (csum_partial_copy_to_xdr)

Function Documentation

int csum_partial_copy_to_xdr ( struct xdr_buf *  xdr,
struct sk_buff skb 

csum_partial_copy_to_xdr - checksum and copy data : target XDR buffer : source skb

We have set things up such that we perform the checksum of the UDP packet in parallel with the copies into the RPC client iovec. -DaveM

Definition at line 153 of file socklib.c.

EXPORT_SYMBOL_GPL ( xdr_skb_read_bits  )
EXPORT_SYMBOL_GPL ( xdr_partial_copy_from_skb  )
EXPORT_SYMBOL_GPL ( csum_partial_copy_to_xdr  )
ssize_t xdr_partial_copy_from_skb ( struct xdr_buf *  xdr,
unsigned int  base,
struct xdr_skb_reader *  desc,
xdr_skb_read_actor  copy_actor 

xdr_partial_copy_from_skb - copy data out of an skb : target XDR buffer : starting offset : sk_buff copy helper : virtual method for copying data

Definition at line 72 of file socklib.c.

size_t xdr_skb_read_bits ( struct xdr_skb_reader *  desc,
void to,
size_t  len 

xdr_skb_read_bits - copy some data bits from skb to internal buffer : sk_buff copy helper : copy destination : number of bytes to copy

Possibly called several times to iterate over an sk_buff and copy data out of it.

Definition at line 29 of file socklib.c.