Specifications

Version 2.0
49
EFI_SHELL_PROTOCOL.SetFilePosition()
Summary
Sets a file’s current position
Prototype
typedef
EFI_STATUS
(EFIAPI *EFI_SHELL_SET_FILE_POSITION)(
IN EFI_FILE_HANDLE FileHandle,
IN UINT64 Position
);
Parameters
FileHandle
The file handle on which requested position will be set.
Position
Byte position from the start of the file
Description
This function sets the current file position for the handle to the position supplied. With
the exception of seeking to position 0xFFFFFFFFFFFFFFFF, only absolute positioning is
supported, and seeking past the end of the file is allowed (a subsequent write would
grow the file). Seeking to position 0xFFFFFFFFFFFFFFFF causes the current position
to be set to the end of the file.
Status Codes Returned
EFI_SUCCESS Data was written.
EFI_UNSUPPORTED The seek request for nonzero is not valid on
open directories.