Last change
on this file since 99396 was 89983, checked in by vboxsync, 4 years ago |
Devices/EFI: Merge edk-stable202105 and openssl 1.1.1j and make it build, bugref:4643
|
-
Property svn:eol-style
set to
native
|
File size:
562 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 | *Position = VirtioFsFile->FilePosition;
|
---|
26 | return EFI_SUCCESS;
|
---|
27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.