Provided by: freebsd-manpages_8.0-1_all hash, hash32,
hash32_buf, hash32_str, hash32_strn, hash32_stre, hash32_strne -
general kernel hashing functions hash32_buf(const void *buf,
size_t len, uint32_t hash); hash32_str(const void *buf, uint32_t
hash); hash32_strn(const void *buf, size_t len, uint32_t hash);
hash32_stre(const void *buf, int end, const char **ep, uint32_t
hash); hash32_strne(const void *buf, size_t len, int end, const
char **ep, The hash32() functions are used to give a consistent
and general interface to a decent hashing algorithm within the
kernel. These functions can be used to hash ASCII NUL terminated
strings, as well as blocks of memory. The hash32_buf() function
is used as a general buffer hashing function. The argument buf
is used to pass in the location, and len is the length of the
buffer. The argument hash is used to extend an existing hash, or
is passed the initial value HASHINIT to start a new hash. The
hash32_str() function is used to hash a NUL terminated string
passed in buf wit