TianoCore EDK2
master
Loading...
Searching...
No Matches
SimpleFsGetPosition.c
Go to the documentation of this file.
1
10
#include "
VirtioFsDxe.h
"
11
12
EFI_STATUS
13
EFIAPI
14
VirtioFsSimpleFileGetPosition (
15
IN
EFI_FILE_PROTOCOL
*This,
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
}
IN
#define IN
Definition:
Base.h:279
OUT
#define OUT
Definition:
Base.h:284
EFI_STATUS
RETURN_STATUS EFI_STATUS
Definition:
UefiBaseType.h:29
EFI_SUCCESS
#define EFI_SUCCESS
Definition:
UefiBaseType.h:112
VirtioFsDxe.h
_EFI_FILE_PROTOCOL
Definition:
SimpleFileSystem.h:528
VIRTIO_FS_FILE
Definition:
VirtioFsDxe.h:140
OvmfPkg
VirtioFsDxe
SimpleFsGetPosition.c
Generated on Fri Nov 15 2024 18:01:22 for TianoCore EDK2 by
1.9.6