Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
checksum.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <net/checksum.h>
#include <asm/byteorder.h>
#include <asm/string.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Macros

#define addc(_t, _r)
 

Functions

__wsum csum_partial (const void *buff, int len, __wsum sum)
 
 EXPORT_SYMBOL (csum_partial)
 
__wsum csum_partial_copy_nocheck (const void *src, void *dst, int len, __wsum sum)
 
 EXPORT_SYMBOL (csum_partial_copy_nocheck)
 
__wsum csum_partial_copy_from_user (const void __user *src, void *dst, int len, __wsum sum, int *err_ptr)
 
 EXPORT_SYMBOL (csum_partial_copy_from_user)
 

Macro Definition Documentation

#define addc (   _t,
  _r 
)
Value:
__asm__ __volatile__ ( \
" add %0, %1, %0\n" \
" addc %0, %%r0, %0\n" \
: "=r"(_t) \
: "r"(_r), "0"(_t));

Definition at line 25 of file checksum.c.

Function Documentation

__wsum csum_partial ( const void buff,
int  len,
__wsum  sum 
)

csum_partial - Compute an internet checksum. : buffer to be checksummed : length of buffer. : initial sum to be added in (32bit unfolded)

Returns the 32bit unfolded internet checksum of the buffer. Before filling it in it needs to be csum_fold()'ed. buff should be aligned to a 64bit boundary if possible.

Definition at line 105 of file checksum.c.

__wsum csum_partial_copy_from_user ( const void __user src,
void dst,
int  len,
__wsum  sum,
int err_ptr 
)

Definition at line 135 of file checksum.c.

__wsum csum_partial_copy_nocheck ( const void src,
void dst,
int  len,
__wsum  sum 
)

Definition at line 117 of file checksum.c.

EXPORT_SYMBOL ( csum_partial  )
EXPORT_SYMBOL ( csum_partial_copy_nocheck  )
EXPORT_SYMBOL ( csum_partial_copy_from_user  )