checksum.c File Reference

#include <stddef.h>
#include <stdint.h>
#include <sys/mman.h>
#include "common.h"

Include dependency graph for checksum.c:

Go to the source code of this file.

Functions

uint32_t checksum_buf (uint32_t crc32, const unsigned char *buf, size_t count)
 Calculates the checksum of the given buffer, up to count bytes.

Variables

static uint32_t table [256]


Function Documentation

uint32_t checksum_buf ( uint32_t  crc32,
const unsigned char *  buf,
size_t  count 
)

Calculates the checksum of the given buffer, up to count bytes.

Returns the checksum. The initial crc32 must be 0.

Definition at line 82 of file checksum.c.

Referenced by fill_trans(), journal_add_op(), journal_commit(), and journal_new().

Here is the caller graph for this function:


Variable Documentation

uint32_t table[256] [static]

Definition at line 12 of file checksum.c.

Referenced by checksum_buf().


Generated on Sat Sep 12 13:33:30 2009 for libjio (internal) by  doxygen 1.5.8