TianoCore EDK2 master
|
#include "Fat.h"
Go to the source code of this file.
Functions | |
EFI_STATUS EFIAPI | FatFlushEx (IN EFI_FILE_PROTOCOL *FHand, IN EFI_FILE_IO_TOKEN *Token) |
EFI_STATUS EFIAPI | FatFlush (IN EFI_FILE_PROTOCOL *FHand) |
EFI_STATUS EFIAPI | FatClose (IN EFI_FILE_PROTOCOL *FHand) |
EFI_STATUS | FatIFileClose (FAT_IFILE *IFile) |
EFI_STATUS | FatOFileFlush (IN FAT_OFILE *OFile) |
BOOLEAN | FatCheckOFileRef (IN FAT_OFILE *OFile) |
STATIC VOID | FatCheckVolumeRef (IN FAT_VOLUME *Volume) |
EFI_STATUS | FatCleanupVolume (IN FAT_VOLUME *Volume, IN FAT_OFILE *OFile, IN EFI_STATUS EfiStatus, IN FAT_TASK *Task) |
VOID | FatSetVolumeError (IN FAT_OFILE *OFile, IN EFI_STATUS Status) |
Routines that check references and flush OFiles
Copyright (c) 2005 - 2013, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Flush.c.
STATIC VOID FatCheckVolumeRef | ( | IN FAT_VOLUME * | Volume | ) |
EFI_STATUS FatCleanupVolume | ( | IN FAT_VOLUME * | Volume, |
IN FAT_OFILE * | OFile, | ||
IN EFI_STATUS | EfiStatus, | ||
IN FAT_TASK * | Task | ||
) |
Set error status for a specific OFile, reference checking the volume. If volume is already marked as invalid, and all resources are freed after reference checking, the file system protocol is uninstalled and the volume structure is freed.
Volume | - the Volume that is to be reference checked and unlocked. |
OFile | - the OFile whose permanent error code is to be set. |
EfiStatus | - error code to be set. |
Task | point to task instance. |
EFI_SUCCESS | - Clean up the volume successfully. |
EFI_STATUS EFIAPI FatClose | ( | IN EFI_FILE_PROTOCOL * | FHand | ) |
EFI_STATUS EFIAPI FatFlush | ( | IN EFI_FILE_PROTOCOL * | FHand | ) |
Flushes all data associated with the file handle.
FHand | - Handle to file to flush. |
EFI_SUCCESS | - Flushed the file successfully. |
EFI_WRITE_PROTECTED | - The volume is read only. |
EFI_ACCESS_DENIED | - The file is read only. |
EFI_STATUS EFIAPI FatFlushEx | ( | IN EFI_FILE_PROTOCOL * | FHand, |
IN EFI_FILE_IO_TOKEN * | Token | ||
) |
Flushes all data associated with the file handle.
FHand | - Handle to file to flush. |
Token | - A pointer to the token associated with the transaction. |
EFI_SUCCESS | - Flushed the file successfully. |
EFI_WRITE_PROTECTED | - The volume is read only. |
EFI_ACCESS_DENIED | - The file is read only. |
EFI_STATUS FatIFileClose | ( | FAT_IFILE * | IFile | ) |
EFI_STATUS FatOFileFlush | ( | IN FAT_OFILE * | OFile | ) |
Flush the data associated with an open file. In this implementation, only last Mod/Access time is updated.
OFile | - The open file. |
EFI_SUCCESS | - The OFile is flushed successfully. |