TianoCore EDK2 master
Loading...
Searching...
No Matches
SimpleFsGetPosition.c
Go to the documentation of this file.
1
10#include "VirtioFsDxe.h"
11
13EFIAPI
14VirtioFsSimpleFileGetPosition (
16 OUT UINT64 *Position
17 )
18{
19 VIRTIO_FS_FILE *VirtioFsFile;
20
21 VirtioFsFile = VIRTIO_FS_FILE_FROM_SIMPLE_FILE (This);
22 if (VirtioFsFile->IsDirectory) {
23 return EFI_UNSUPPORTED;
24 }
25
26 *Position = VirtioFsFile->FilePosition;
27 return EFI_SUCCESS;
28}
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
#define EFI_SUCCESS
Definition: UefiBaseType.h:112