RTEMS  5.1
Functions

Provides a 32bit Hash of a String used to Search a Directory. More...

#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Functions

uint32_t rtems_rfs_dir_hash (const void *key, size_t length)
 

Detailed Description

Provides a 32bit Hash of a String used to Search a Directory.

RTEMS File Systems Directory Hash provides a 32bit hash of a string. This is used to search a directory.

Function Documentation

◆ rtems_rfs_dir_hash()

uint32_t rtems_rfs_dir_hash ( const void *  key,
size_t  length 
)

Compute a hash of the key over the length of string.

Parameters
[in]keyis a pointer to the key to calculate the hash of.
[in]lengthis the length of the key in bytes.
Return values
hashThe computed uint32_t hash.