FreeBSD ZFS
The Zettabyte File System
Data Structures | Typedefs | Functions | Variables

sys/zio_checksum.h File Reference

#include <sys/zio.h>
Include dependency graph for zio_checksum.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  zio_checksum_info
 Information about each checksum function. More...
struct  zio_bad_cksum

Typedefs

typedef void zio_checksum_t (const void *data, uint64_t size, zio_cksum_t *zcp)
 Signature for checksum functions.
typedef struct zio_checksum_info zio_checksum_info_t
 Information about each checksum function.
typedef struct zio_bad_cksum zio_bad_cksum_t

Functions

void zio_checksum_compute (zio_t *zio, enum zio_checksum checksum, void *data, uint64_t size)
 Generate the checksum.
int zio_checksum_error (zio_t *zio, zio_bad_cksum_t *out)
enum zio_checksum spa_dedup_checksum (spa_t *spa)

Variables

zio_checksum_info_t zio_checksum_table [ZIO_CHECKSUM_FUNCTIONS]
zio_checksum_t zio_checksum_SHA256

Typedef Documentation

Information about each checksum function.

typedef void zio_checksum_t(const void *data, uint64_t size, zio_cksum_t *zcp)

Signature for checksum functions.

Definition at line 37 of file zio_checksum.h.


Function Documentation

enum zio_checksum spa_dedup_checksum ( spa_t spa)

Definition at line 1710 of file spa_misc.c.

void zio_checksum_compute ( zio_t zio,
enum zio_checksum  checksum,
void *  data,
uint64_t  size 
)

Generate the checksum.

Definition at line 152 of file zio_checksum.c.

int zio_checksum_error ( zio_t zio,
zio_bad_cksum_t out 
)

Definition at line 190 of file zio_checksum.c.


Variable Documentation

zio_checksum_t zio_checksum_SHA256
zio_checksum_info_t zio_checksum_table[ZIO_CHECKSUM_FUNCTIONS]

Definition at line 70 of file zio_checksum.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines