RTEMS: cpukit/include/rtems/rfs/rtems-rfs-dir-hash.h File Reference

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Functions
rtems-rfs-dir-hash.h File Reference
IO Library » File System Types and Mount » RTEMS File System Group Management

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] | key | is a pointer to the key to calculate the hash of.
  [in] | length | is the length of the key in bytes.

Return values

  hash | The computed uint32_t hash.