Last change
on this file since 106129 was 99404, checked in by vboxsync, 2 years ago |
Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643
|
-
Property svn:eol-style
set to
native
|
File size:
566 bytes
|
Line | |
---|
1 | /** @file
|
---|
2 | EFI_FILE_PROTOCOL.GetPosition() member function for the Virtio Filesystem
|
---|
3 | driver.
|
---|
4 |
|
---|
5 | Copyright (C) 2020, Red Hat, Inc.
|
---|
6 |
|
---|
7 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
8 | **/
|
---|
9 |
|
---|
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 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.