Efi_file.flush(), Flush(), Func – Intel Extensible Firmware Interface User Manual

Page 392: Efi_file.flush() summary, Prototype, Parameters, Description, Status codes returned

Advertising
background image

Extensible Firmware Interface Specification

11-32

12/01/02

Version 1.10

EFI_FILE.Flush()

Summary

Flushes all modified data associated with a file to a device.

Prototype

EFI_STATUS
(EFIAPI *EFI_FILE_FLUSH) (
IN

EFI_FILE

*This

);

Parameters

This

A pointer to the

EFI_FILE

instance that is the file handle to flush. See

the type

EFI_FILE

protocol description.

Description

The

Flush()

function flushes all modified data associated with a file to a device.

Status Codes Returned

EFI_SUCCESS

The data was flushed.

EFI_NO_MEDIA

The device has no medium.

EFI_DEVICE_ERROR

The device reported an error.

EFI_VOLUME_CORRUPTED

The file system structures are corrupted.

EFI_WRITE_PROTECTED

The file or medium is write protected.

EFI_ACCESS_DENIED

The file was opened read-only.

EFI_VOLUME_FULL

The volume is full.

Advertising