FreeBSD ZFS
The Zettabyte File System
Defines | Functions

sys/unique.h File Reference

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

Go to the source code of this file.

Defines

#define UNIQUE_BITS   56
 The number of significant bits in each unique value.

Functions

void unique_init (void)
void unique_fini (void)
uint64_t unique_create (void)
 Return a new unique value (which will not be uniquified against until it is unique_insert()-ed).
uint64_t unique_insert (uint64_t value)
 Return a unique value, which equals the one passed in if possible.
void unique_remove (uint64_t value)
 Indicate that this value no longer needs to be uniquified against.

Define Documentation

#define UNIQUE_BITS   56

The number of significant bits in each unique value.

Definition at line 38 of file unique.h.


Function Documentation

uint64_t unique_create ( void  )

Return a new unique value (which will not be uniquified against until it is unique_insert()-ed).

Definition at line 71 of file unique.c.

void unique_fini ( void  )

Definition at line 64 of file unique.c.

void unique_init ( void  )

Definition at line 56 of file unique.c.

uint64_t unique_insert ( uint64_t  value)

Return a unique value, which equals the one passed in if possible.

Definition at line 79 of file unique.c.

void unique_remove ( uint64_t  value)

Indicate that this value no longer needs to be uniquified against.

Definition at line 103 of file unique.c.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines