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

Go to the source code of this file.

Macros

#define csum_partial_copy_fromuser   csum_partial_copy
 
#define HAVE_CSUM_COPY_USER
 

Functions

__wsum csum_partial (const void *buff, int len, __wsum sum)
 
__wsum csum_partial_copy_nocheck (const void *src, void *dst, int len, __wsum sum)
 
__wsum csum_partial_copy_from_user (const void *src, void *dst, int len, __wsum sum, int *err_ptr)
 
__sum16 ip_fast_csum (const void *iph, unsigned int ihl)
 
__sum16 ip_compute_csum (const void *buff, int len)
 
__wsum csum_partial_copy (const void *src, void *dst, int len, __wsum sum)
 
__wsum csum_and_copy_to_user (const void *src, void *dst, int len, __wsum sum, int *err_ptr)
 

Macro Definition Documentation

#define csum_partial_copy_fromuser   csum_partial_copy

Definition at line 24 of file checksum.h.

#define HAVE_CSUM_COPY_USER

Definition at line 81 of file checksum.h.

Function Documentation

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

Definition at line 86 of file checksum.c.

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

Definition at line 164 of file checksum.c.

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

Definition at line 54 of file checksum.c.

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

Definition at line 70 of file checksum.c.

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

csum_partial_copy_nocheck - Copy and checksum. : source address : destination address : number of bytes to be copied. : initial sum that is added into the result (32bit unfolded)

Returns an 32bit unfolded checksum of the buffer.

Definition at line 374 of file csum_partial_copy.c.

__sum16 ip_compute_csum ( const void buff,
int  len 
)

Definition at line 181 of file checksum.c.

__sum16 ip_fast_csum ( const void iph,
unsigned int  ihl 
)

Definition at line 147 of file checksum.c.