TianoCore EDK2 master
Loading...
Searching...
No Matches
Hash.c File Reference
#include "Fat.h"

Go to the source code of this file.

Functions

STATIC UINT32 FatHashLongName (IN CHAR16 *LongNameString)
 
STATIC UINT32 FatHashShortName (IN CHAR8 *ShortNameString)
 
FAT_DIRENT ** FatLongNameHashSearch (IN FAT_ODIR *ODir, IN CHAR16 *LongNameString)
 
FAT_DIRENT ** FatShortNameHashSearch (IN FAT_ODIR *ODir, IN CHAR8 *ShortNameString)
 
VOID FatInsertToHashTable (IN FAT_ODIR *ODir, IN FAT_DIRENT *DirEnt)
 
VOID FatDeleteFromHashTable (IN FAT_ODIR *ODir, IN FAT_DIRENT *DirEnt)
 

Detailed Description

Hash table operations.

Copyright (c) 2005 - 2015, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Hash.c.

Function Documentation

◆ FatDeleteFromHashTable()

VOID FatDeleteFromHashTable ( IN FAT_ODIR ODir,
IN FAT_DIRENT DirEnt 
)

Delete directory entry from hash table.

Parameters
ODir- The parent directory.
DirEnt- The directory entry node.

Definition at line 165 of file Hash.c.

◆ FatHashLongName()

STATIC UINT32 FatHashLongName ( IN CHAR16 *  LongNameString)

Get hash value for long name.

Parameters
LongNameString- The long name string to be hashed.
Returns
HashValue.

Definition at line 22 of file Hash.c.

◆ FatHashShortName()

STATIC UINT32 FatHashShortName ( IN CHAR8 *  ShortNameString)

Get hash value for short name.

Parameters
ShortNameString- The short name string to be hashed.
Returns
HashValue

Definition at line 51 of file Hash.c.

◆ FatInsertToHashTable()

VOID FatInsertToHashTable ( IN FAT_ODIR ODir,
IN FAT_DIRENT DirEnt 
)

Insert directory entry to hash table.

Parameters
ODir- The parent directory.
DirEnt- The directory entry node.

Definition at line 132 of file Hash.c.

◆ FatLongNameHashSearch()

FAT_DIRENT ** FatLongNameHashSearch ( IN FAT_ODIR ODir,
IN CHAR16 *  LongNameString 
)

Search the long name hash table for the directory entry.

Parameters
ODir- The directory to be searched.
LongNameString- The long name string to search.
Returns
The previous long name hash node of the directory entry.

Definition at line 72 of file Hash.c.

◆ FatShortNameHashSearch()

FAT_DIRENT ** FatShortNameHashSearch ( IN FAT_ODIR ODir,
IN CHAR8 *  ShortNameString 
)

Search the short name hash table for the directory entry.

Parameters
ODir- The directory to be searched.
ShortNameString- The short name string to search.
Returns
The previous short name hash node of the directory entry.

Definition at line 103 of file Hash.c.