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

Go to the source code of this file.

Functions

STATIC VOID FatFreeODir (IN FAT_ODIR *ODir)
 
STATIC FAT_ODIRFatAllocateODir (IN FAT_OFILE *OFile)
 
VOID FatDiscardODir (IN FAT_OFILE *OFile)
 
VOID FatRequestODir (IN FAT_OFILE *OFile)
 
VOID FatCleanupODirCache (IN FAT_VOLUME *Volume)
 

Detailed Description

Functions for directory cache operation.

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

Definition in file DirectoryCache.c.

Function Documentation

◆ FatAllocateODir()

STATIC FAT_ODIR * FatAllocateODir ( IN FAT_OFILE OFile)

Allocate the directory structure.

Parameters
OFile- The corresponding OFile.

Definition at line 52 of file DirectoryCache.c.

◆ FatCleanupODirCache()

VOID FatCleanupODirCache ( IN FAT_VOLUME Volume)

Clean up all the cached directory structures when the volume is going to be abandoned.

Parameters
Volume- FAT file system volume.

Definition at line 175 of file DirectoryCache.c.

◆ FatDiscardODir()

VOID FatDiscardODir ( IN FAT_OFILE OFile)

Discard the directory structure when an OFile will be freed. Volume will cache this directory if the OFile does not represent a deleted file.

Parameters
OFile- The OFile whose directory structure is to be discarded.

Definition at line 80 of file DirectoryCache.c.

◆ FatFreeODir()

STATIC VOID FatFreeODir ( IN FAT_ODIR ODir)

Free the directory structure and release the memory.

Parameters
ODir- The directory to be freed.

Definition at line 21 of file DirectoryCache.c.

◆ FatRequestODir()

VOID FatRequestODir ( IN FAT_OFILE OFile)

Request the directory structure when an OFile is newly generated. If the directory structure is cached by volume, then just return this directory; Otherwise, allocate a new one for OFile.

Parameters
OFile- The OFile which requests directory structure.

Definition at line 130 of file DirectoryCache.c.