TianoCore EDK2 master
|
#include <Base.h>
#include <Guid/FileInfo.h>
#include <IndustryStandard/VirtioFs.h>
#include <Library/DebugLib.h>
#include <Protocol/SimpleFileSystem.h>
#include <Protocol/VirtioDevice.h>
#include <Uefi/UefiBaseType.h>
Go to the source code of this file.
Data Structures | |
struct | VIRTIO_FS |
struct | VIRTIO_FS_IO_VECTOR |
struct | VIRTIO_FS_SCATTER_GATHER_LIST |
struct | VIRTIO_FS_FILE |
Macros | |
#define | VIRTIO_FS_SIG SIGNATURE_64 ('V', 'I', 'R', 'T', 'I', 'O', 'F', 'S') |
#define | VIRTIO_FS_FILE_SIG SIGNATURE_64 ('V', 'I', 'O', 'F', 'S', 'F', 'I', 'L') |
#define | VIRTIO_FS_MAX_PATHNAME_LENGTH ((UINTN)65535) |
#define | VIRTIO_FS_FILE_MAX_FILE_INFO 256 |
#define | VIRTIO_FS_FROM_SIMPLE_FS(SimpleFsReference) CR (SimpleFsReference, VIRTIO_FS, SimpleFs, VIRTIO_FS_SIG); |
#define | VIRTIO_FS_FILE_FROM_SIMPLE_FILE(SimpleFileReference) CR (SimpleFileReference, VIRTIO_FS_FILE, SimpleFile, VIRTIO_FS_FILE_SIG); |
#define | VIRTIO_FS_FILE_FROM_OPEN_FILES_ENTRY(OpenFilesEntryReference) |
Typedefs | |
typedef CHAR16 | VIRTIO_FS_LABEL[VIRTIO_FS_TAG_BYTES+1] |
Internal macro definitions, type definitions, and function declarations for the Virtio Filesystem device driver.
Copyright (C) 2020, Red Hat, Inc.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file VirtioFsDxe.h.
#define VIRTIO_FS_FILE_FROM_OPEN_FILES_ENTRY | ( | OpenFilesEntryReference | ) |
Definition at line 182 of file VirtioFsDxe.h.
#define VIRTIO_FS_FILE_FROM_SIMPLE_FILE | ( | SimpleFileReference | ) | CR (SimpleFileReference, VIRTIO_FS_FILE, SimpleFile, VIRTIO_FS_FILE_SIG); |
Definition at line 179 of file VirtioFsDxe.h.
#define VIRTIO_FS_FILE_MAX_FILE_INFO 256 |
Definition at line 53 of file VirtioFsDxe.h.
#define VIRTIO_FS_FILE_SIG SIGNATURE_64 ('V', 'I', 'O', 'F', 'S', 'F', 'I', 'L') |
Definition at line 23 of file VirtioFsDxe.h.
#define VIRTIO_FS_FROM_SIMPLE_FS | ( | SimpleFsReference | ) | CR (SimpleFsReference, VIRTIO_FS, SimpleFs, VIRTIO_FS_SIG); |
Definition at line 87 of file VirtioFsDxe.h.
#define VIRTIO_FS_MAX_PATHNAME_LENGTH ((UINTN)65535) |
Definition at line 48 of file VirtioFsDxe.h.
#define VIRTIO_FS_SIG SIGNATURE_64 ('V', 'I', 'R', 'T', 'I', 'O', 'F', 'S') |
Definition at line 21 of file VirtioFsDxe.h.
typedef CHAR16 VIRTIO_FS_LABEL[VIRTIO_FS_TAG_BYTES+1] |
Definition at line 60 of file VirtioFsDxe.h.
EFI_STATUS VirtioFsAppendPath | ( | IN CHAR8 * | LhsPath8, |
IN CHAR16 * | RhsPath16, | ||
OUT CHAR8 ** | ResultPath8, | ||
OUT BOOLEAN * | RootEscape | ||
) |
Append the UEFI-style RhsPath16 to the POSIX-style, canonical format LhsPath8. Output the POSIX-style, canonical format result in ResultPath, as a dynamically allocated string.
Canonicalization (aka sanitization) establishes the following properties:
Any dot-dot in RhsPath16 that would remove the root directory is dropped, and reported through RootEscape, without failing the function call.
[in] | LhsPath8 | Identifies the base directory. The caller is responsible for ensuring that LhsPath8 conform to the above canonical pathname format on entry. |
[in] | RhsPath16 | Identifies the desired file with a UEFI-style CHAR16 pathname. If RhsPath16 starts with a backslash, then RhsPath16 is considered absolute, and LhsPath8 is ignored; RhsPath16 is sanitized in isolation, for producing ResultPath8. Otherwise (i.e., if RhsPath16 is relative), RhsPath16 is transliterated to CHAR8, and naively appended to LhsPath8. The resultant fused pathname is then sanitized, to produce ResultPath8. |
[out] | ResultPath8 | The POSIX-style, canonical format pathname that leads to the file desired by the caller. After use, the caller is responsible for freeing ResultPath8. |
[out] | RootEscape | Set to TRUE if at least one dot-dot component in RhsPath16 attempted to escape the root directory; set to FALSE otherwise. |
EFI_SUCCESS | ResultPath8 has been produced. RootEscape has been output. |
EFI_INVALID_PARAMETER | RhsPath16 is zero-length. |
EFI_INVALID_PARAMETER | RhsPath16 failed the VIRTIO_FS_MAX_PATHNAME_LENGTH check. |
EFI_OUT_OF_RESOURCES | Memory allocation failed. |
EFI_OUT_OF_RESOURCES | ResultPath8 would have failed the VIRTIO_FS_MAX_PATHNAME_LENGTH check. |
EFI_UNSUPPORTED | RhsPath16 contains a character that either falls outside of the printable ASCII set, or is a forward slash. |
EFI_STATUS VirtioFsComposeRenameDestination | ( | IN CHAR8 * | LhsPath8, |
IN CHAR16 * | RhsPath16, | ||
OUT CHAR8 ** | ResultPath8, | ||
OUT BOOLEAN * | RootEscape | ||
) |
Format the destination of a rename/move operation as a dynamically allocated canonical pathname.
Any dot-dot in RhsPath16 that would remove the root directory is dropped, and reported through RootEscape, without failing the function call.
[in] | LhsPath8 | The source pathname operand of the rename/move operation, expressed as a canonical pathname (as defined in the description of VirtioFsAppendPath()). The root directory "/" cannot be renamed/moved, and will be rejected. |
[in] | RhsPath16 | The destination pathname operand expressed as a UEFI-style CHAR16 pathname. |
If RhsPath16 starts with a backslash, then RhsPath16 is considered absolute. Otherwise, RhsPath16 is interpreted relative to the most specific parent directory found in LhsPath8.
Independently, if RhsPath16 ends with a backslash (i.e., RhsPath16 is given in the "move into directory" convenience form), then RhsPath16 is interpreted with the basename of LhsPath8 appended. Otherwise, the last pathname component of RhsPath16 is taken as the last pathname component of the rename/move destination.
An empty RhsPath16 is rejected.
[out] | ResultPath8 | The POSIX-style, canonical format pathname that leads to the renamed/moved file. After use, the caller is responsible for freeing ResultPath8. |
[out] | RootEscape | Set to TRUE if at least one dot-dot component in RhsPath16 attempted to escape the root directory; set to FALSE otherwise. |
EFI_SUCCESS | ResultPath8 has been produced. RootEscape has been output. |
EFI_INVALID_PARAMETER | LhsPath8 is "/". |
EFI_INVALID_PARAMETER | RhsPath16 is zero-length. |
EFI_INVALID_PARAMETER | RhsPath16 failed the VIRTIO_FS_MAX_PATHNAME_LENGTH check. |
EFI_OUT_OF_RESOURCES | Memory allocation failed. |
EFI_OUT_OF_RESOURCES | ResultPath8 would have failed the VIRTIO_FS_MAX_PATHNAME_LENGTH check. |
EFI_UNSUPPORTED | RhsPath16 contains a character that either falls outside of the printable ASCII set, or is a forward slash. |
EFI_STATUS VirtioFsErrnoToEfiStatus | ( | IN INT32 | Errno | ) |
An ad-hoc function for mapping FUSE (well, Linux) "errno" values to EFI_STATUS.
[in] | Errno | The "VIRTIO_FS_FUSE_RESPONSE.Error" value, returned by the Virtio Filesystem device. The value is expected to be negative. |
EFI_DEVICE_ERROR | Fallback EFI_STATUS code for unrecognized Errno values. |
ExitBootServices event notification function for a Virtio Filesystem object.
This function resets the VIRTIO_FS.Virtio device, causing it to release all references to guest-side resources. The function may only be called after VirtioFsInit() returns successfully and before VirtioFsUninit() is called.
[in] | ExitBootEvent | The VIRTIO_FS.ExitBoot event that has been signaled. |
[in] | VirtioFsAsVoid | Pointer to the VIRTIO_FS object, passed in as (VOID*). |
EFI_STATUS VirtioFsFuseAttrToEfiFileInfo | ( | IN VIRTIO_FS_FUSE_ATTRIBUTES_RESPONSE * | FuseAttr, |
OUT EFI_FILE_INFO * | FileInfo | ||
) |
Convert select fields of a VIRTIO_FS_FUSE_ATTRIBUTES_RESPONSE object to corresponding fields in EFI_FILE_INFO.
[in] | FuseAttr | The VIRTIO_FS_FUSE_ATTRIBUTES_RESPONSE object to convert the relevant fields from. |
[out] | FileInfo | The EFI_FILE_INFO structure to modify. Importantly, the FileInfo->Size and FileInfo->FileName fields are not overwritten. |
EFI_SUCCESS | Conversion successful. |
EFI_UNSUPPORTED | The allocated size of the file is inexpressible in EFI_FILE_INFO. |
EFI_UNSUPPORTED | One of the file access times is inexpressible in EFI_FILE_INFO. |
EFI_UNSUPPORTED | The file type is inexpressible in EFI_FILE_INFO. |
EFI_UNSUPPORTED | The file is a regular file that has multiple names on the host side (i.e., its hard link count is greater than one). |
EFI_STATUS VirtioFsFuseCheckResponse | ( | IN VIRTIO_FS_SCATTER_GATHER_LIST * | ResponseSgList, |
IN UINT64 | RequestId, | ||
OUT UINTN * | TailBufferFill | ||
) |
Check the common FUSE response format.
The first buffer in the response scatter-gather list is assumed a VIRTIO_FS_FUSE_RESPONSE structure. Subsequent response buffers, if any, up to and excluding the last one, are assumed fixed size. The last response buffer may or may not be fixed size, as specified by the caller.
This function may only be called after VirtioFsSgListsSubmit() returns successfully.
[in] | ResponseSgList | The scatter-gather list that describes the response part of the exchange – the buffers that the Virtio Filesystem device filled in during the virtio transfer. |
[in] | RequestId | The request identifier to which the response is expected to belong. |
[out] | TailBufferFill | If NULL, then the last buffer in ResponseSgList is considered fixed size. Otherwise, the last buffer is considered variable size, and on successful return, TailBufferFill reports the number of bytes in the last buffer. |
EFI_INVALID_PARAMETER | TailBufferFill is not NULL (i.e., the last buffer is considered variable size), and ResponseSgList->NumVec is 1. |
EFI_INVALID_PARAMETER | The allocated size of the first buffer does not match sizeof(VIRTIO_FS_FUSE_RESPONSE). |
EFI_PROTOCOL_ERROR | The VIRTIO_FS_FUSE_RESPONSE structure in the first buffer has not been fully populated. |
EFI_PROTOCOL_ERROR | "VIRTIO_FS_FUSE_RESPONSE.Len" in the first buffer does not equal the sum of the individual buffer sizes (as populated). |
EFI_PROTOCOL_ERROR | "VIRTIO_FS_FUSE_RESPONSE.Unique" in the first buffer does not equal RequestId. |
EFI_PROTOCOL_ERROR | "VIRTIO_FS_FUSE_RESPONSE.Error" in the first buffer is zero, but a subsequent fixed size buffer has not been fully populated. |
EFI_DEVICE_ERROR | "VIRTIO_FS_FUSE_RESPONSE.Error" in the first buffer is nonzero. The caller may investigate "VIRTIO_FS_FUSE_RESPONSE.Error". Note that the completeness of the subsequent fixed size buffers is not verified in this case. |
EFI_SUCCESS | Verification successful. |
EFI_STATUS VirtioFsFuseDirentPlusToEfiFileInfo | ( | IN VIRTIO_FS_FUSE_DIRENTPLUS_RESPONSE * | FuseDirent, |
IN OUT EFI_FILE_INFO * | FileInfo | ||
) |
Convert a VIRTIO_FS_FUSE_DIRENTPLUS_RESPONSE filename to an EFI_FILE_INFO filename.
[in] | FuseDirent | The VIRTIO_FS_FUSE_DIRENTPLUS_RESPONSE object to convert the filename byte array from. The caller is responsible for ensuring that FuseDirent->Namelen describe valid storage. |
[in,out] | FileInfo | The EFI_FILE_INFO structure to modify. On input, the caller is responsible for setting FileInfo->Size according to the allocated size. On successful return, FileInfo->Size is reduced to reflect the filename converted into FileInfo->FileName. FileInfo->FileName is set from the filename byte array that directly follows the FuseDirent header object. Fields other than FileInfo->Size and FileInfo->FileName are not modified. |
EFI_SUCCESS | Conversion successful. |
EFI_INVALID_PARAMETER | VIRTIO_FS_FUSE_DIRENTPLUS_RESPONSE_SIZE() returns zero for FuseDirent->Namelen. |
EFI_BUFFER_TOO_SMALL | On input, FileInfo->Size does not provide enough room for converting the filename byte array from FuseDirent. |
EFI_UNSUPPORTED | The FuseDirent filename byte array contains a byte that falls outside of the printable ASCII range, or is a forward slash or a backslash. |
EFI_STATUS VirtioFsFuseFlush | ( | IN OUT VIRTIO_FS * | VirtioFs, |
IN UINT64 | NodeId, | ||
IN UINT64 | FuseHandle | ||
) |
Flush changes queued on the local virtualization host to the remote storage server's memory (not storage device), over the network, by sending the FUSE_FLUSH request to the Virtio Filesystem device.
The function may only be called after VirtioFsFuseInitSession() returns successfully and before VirtioFsUninit() is called.
[in,out] | VirtioFs | The Virtio Filesystem device to send the FUSE_FLUSH request to. On output, the FUSE request counter "VirtioFs->RequestId" will have been incremented. |
[in] | NodeId | The inode number of the regular file to flush. |
[in] | FuseHandle | The open handle to the regular file to flush. |
EFI_SUCCESS | The regular file has been flushed. |
Definition at line 37 of file FuseFlush.c.
EFI_STATUS VirtioFsFuseForget | ( | IN OUT VIRTIO_FS * | VirtioFs, |
IN UINT64 | NodeId | ||
) |
Make the Virtio Filesysem device drop one reference count from a NodeId that the driver looked up by filename.
Send the FUSE_FORGET request to the Virtio Filesysem device for this. Unlike most other FUSE requests, FUSE_FORGET doesn't elicit a response, not even the common VIRTIO_FS_FUSE_RESPONSE header.
The function may only be called after VirtioFsFuseInitSession() returns successfully and before VirtioFsUninit() is called.
[in,out] | VirtioFs | The Virtio Filesystem device to send the FUSE_FORGET request to. On output, the FUSE request counter "VirtioFs->RequestId" will have been incremented. |
[in] | NodeId | The inode number that the client learned by way of lookup, and that the server should now un-reference exactly once. |
EFI_SUCCESS | The FUSE_FORGET request has been submitted. |
Definition at line 36 of file FuseForget.c.
EFI_STATUS VirtioFsFuseFsyncFileOrDir | ( | IN OUT VIRTIO_FS * | VirtioFs, |
IN UINT64 | NodeId, | ||
IN UINT64 | FuseHandle, | ||
IN BOOLEAN | IsDir | ||
) |
Synchronize the in-core state of a regular file or a directory with the storage device on the host, by sending the FUSE_FSYNC or FUSE_FSYNCDIR request to the Virtio Filesystem device.
The function may only be called after VirtioFsFuseInitSession() returns successfully and before VirtioFsUninit() is called.
[in,out] | VirtioFs | The Virtio Filesystem device to send the FUSE_FSYNC / FUSE_FSYNCDIR request to. On output, the FUSE request counter "VirtioFs->RequestId" will have been incremented. |
[in] | NodeId | The inode number of the file or directory to sync. |
[in] | FuseHandle | The open handle to the file or directory to sync. |
[in] | IsDir | TRUE if NodeId and FuseHandle refer to a directory, FALSE if NodeId and FuseHandle refer to a regular file. |
EFI_SUCCESS | The file or directory has been synchronized. |
Definition at line 42 of file FuseFsync.c.
EFI_STATUS VirtioFsFuseGetAttr | ( | IN OUT VIRTIO_FS * | VirtioFs, |
IN UINT64 | NodeId, | ||
OUT VIRTIO_FS_FUSE_ATTRIBUTES_RESPONSE * | FuseAttr | ||
) |
Send a FUSE_GETATTR request to the Virtio Filesystem device, for fetching the attributes of an inode.
The function may only be called after VirtioFsFuseInitSession() returns successfully and before VirtioFsUninit() is called.
[in,out] | VirtioFs | The Virtio Filesystem device to send the FUSE_GETATTR request to. On output, the FUSE request counter "VirtioFs->RequestId" will have been incremented. |
[in] | NodeId | The inode number for which the attributes should be retrieved. |
[out] | FuseAttr | The VIRTIO_FS_FUSE_ATTRIBUTES_RESPONSE object describing the properties of the inode. |
EFI_SUCCESS | FuseAttr has been filled in. |
Definition at line 39 of file FuseGetAttr.c.
EFI_STATUS VirtioFsFuseInitSession | ( | IN OUT VIRTIO_FS * | VirtioFs | ) |
Send a FUSE_INIT request to the Virtio Filesystem device, for starting the FUSE session.
From virtio-v1.1-cs01-87fa6b5d8155, 5.11.5 Device Initialization: "On initialization the driver first discovers the device's virtqueues. The FUSE session is started by sending a FUSE_INIT request as defined by the FUSE protocol on one request virtqueue."
The function may only be called after VirtioFsInit() returns successfully and before VirtioFsUninit() is called.
[in,out] | VirtioFs | The Virtio Filesystem device to send the FUSE_INIT request to. The FUSE request counter "VirtioFs->RequestId" is set to 1 on output. The maximum write buffer size exposed in the FUSE_INIT response is saved in "VirtioFs->MaxWrite", on output. |
EFI_SUCCESS | The FUSE session has been started. |
EFI_UNSUPPORTED | FUSE interface version or feature negotiation failed. |
Definition at line 45 of file FuseInit.c.
EFI_STATUS VirtioFsFuseLookup | ( | IN OUT VIRTIO_FS * | VirtioFs, |
IN UINT64 | DirNodeId, | ||
IN CHAR8 * | Name, | ||
OUT UINT64 * | NodeId, | ||
OUT VIRTIO_FS_FUSE_ATTRIBUTES_RESPONSE * | FuseAttr | ||
) |
Send a FUSE_LOOKUP request to the Virtio Filesystem device, for resolving a filename to an inode.
The function returns EFI_NOT_FOUND exclusively if the Virtio Filesystem device explicitly responds with ENOENT – "No such file or directory".
The function may only be called after VirtioFsFuseInitSession() returns successfully and before VirtioFsUninit() is called.
[in,out] | VirtioFs | The Virtio Filesystem device to send the FUSE_LOOKUP request to. On output, the FUSE request counter "VirtioFs->RequestId" will have been incremented. |
[in] | DirNodeId | The inode number of the directory in which Name should be resolved to an inode. |
[in] | Name | The single-component filename to resolve in the directory identified by DirNodeId. |
[out] | NodeId | The inode number which Name has been resolved to. |
[out] | FuseAttr | The VIRTIO_FS_FUSE_ATTRIBUTES_RESPONSE object describing the properties of the resolved inode. |
EFI_SUCCESS | Filename to inode resolution successful. |
EFI_NOT_FOUND | The Virtio Filesystem device explicitly reported ENOENT – "No such file or directory". |
Definition at line 54 of file FuseLookup.c.
EFI_STATUS VirtioFsFuseMkDir | ( | IN OUT VIRTIO_FS * | VirtioFs, |
IN UINT64 | ParentNodeId, | ||
IN CHAR8 * | Name, | ||
OUT UINT64 * | NodeId | ||
) |
Send a FUSE_MKDIR request to the Virtio Filesystem device, for creating a directory.
The function may only be called after VirtioFsFuseInitSession() returns successfully and before VirtioFsUninit() is called.
[in,out] | VirtioFs | The Virtio Filesystem device to send the FUSE_MKDIR request to. On output, the FUSE request counter "VirtioFs->RequestId" will have been incremented. |
[in] | ParentNodeId | The inode number of the direct parent directory of the directory to create. |
[in] | Name | The single-component filename of the directory to create, under the parent directory identified by ParentNodeId. |
[out] | NodeId | The inode number of the new directory. |
EFI_SUCCESS | The directory has been created. |
Definition at line 43 of file FuseMkDir.c.
EFI_STATUS VirtioFsFuseNewRequest | ( | IN OUT VIRTIO_FS * | VirtioFs, |
OUT VIRTIO_FS_FUSE_REQUEST * | Request, | ||
IN UINT32 | RequestSize, | ||
IN VIRTIO_FS_FUSE_OPCODE | Opcode, | ||
IN UINT64 | NodeId | ||
) |
Set up the fields of a new VIRTIO_FS_FUSE_REQUEST object.
The function may only be called after VirtioFsInit() returns successfully and before VirtioFsUninit() is called.
[in,out] | VirtioFs | The Virtio Filesystem device that the request is being prepared for. The "VirtioFs->RequestId" field will be copied into "Request->Unique". On output (on successful return), "VirtioFs->RequestId" will be incremented. |
[out] | Request | The VIRTIO_FS_FUSE_REQUEST object whose fields are to be set. |
[in] | RequestSize | The total size of the request, including sizeof(VIRTIO_FS_FUSE_REQUEST). |
[in] | Opcode | The VIRTIO_FS_FUSE_OPCODE that identifies the command to send. |
[in] | NodeId | The inode number of the file that the request refers to. When Opcode is VirtioFsFuseOpInit, NodeId is ignored by the Virtio Filesystem device. |
EFI_INVALID_PARAMETER | RequestSize is smaller than sizeof(VIRTIO_FS_FUSE_REQUEST). |
EFI_OUT_OF_RESOURCES | "VirtioFs->RequestId" is MAX_UINT64, and can be incremented no more. |
EFI_SUCCESS | Request has been populated, "VirtioFs->RequestId" has been incremented. |
EFI_STATUS VirtioFsFuseOpen | ( | IN OUT VIRTIO_FS * | VirtioFs, |
IN UINT64 | NodeId, | ||
IN BOOLEAN | ReadWrite, | ||
OUT UINT64 * | FuseHandle | ||
) |
Send a FUSE_OPEN request to the Virtio Filesystem device, for opening a regular file.
The function may only be called after VirtioFsFuseInitSession() returns successfully and before VirtioFsUninit() is called.
[in,out] | VirtioFs | The Virtio Filesystem device to send the FUSE_OPEN request to. On output, the FUSE request counter "VirtioFs->RequestId" will have been incremented. |
[in] | NodeId | The inode number of the regular file to open. |
[in] | ReadWrite | If TRUE, open the regular file in read-write mode. If FALSE, open the regular file in read-only mode. |
[out] | FuseHandle | The open handle to the regular file, returned by the Virtio Filesystem device. |
EFI_SUCCESS | The regular file has been opened. |
Definition at line 40 of file FuseOpen.c.
EFI_STATUS VirtioFsFuseOpenDir | ( | IN OUT VIRTIO_FS * | VirtioFs, |
IN UINT64 | NodeId, | ||
OUT UINT64 * | FuseHandle | ||
) |
Send a FUSE_OPENDIR request to the Virtio Filesystem device, for opening a directory.
The function may only be called after VirtioFsFuseInitSession() returns successfully and before VirtioFsUninit() is called.
[in,out] | VirtioFs | The Virtio Filesystem device to send the FUSE_OPENDIR request to. On output, the FUSE request counter "VirtioFs->RequestId" will have been incremented. |
[in] | NodeId | The inode number of the directory to open. |
[out] | FuseHandle | The open file handle returned by the Virtio Filesystem device. |
EFI_SUCCESS | The directory has been opened. |
Definition at line 38 of file FuseOpenDir.c.
EFI_STATUS VirtioFsFuseOpenOrCreate | ( | IN OUT VIRTIO_FS * | VirtioFs, |
IN UINT64 | ParentNodeId, | ||
IN CHAR8 * | Name, | ||
OUT UINT64 * | NodeId, | ||
OUT UINT64 * | FuseHandle | ||
) |
Send a FUSE_CREATE request to the Virtio Filesystem device, for opening a regular file with (O_RDWR | O_CREAT) semantics.
The function may only be called after VirtioFsFuseInitSession() returns successfully and before VirtioFsUninit() is called.
[in,out] | VirtioFs | The Virtio Filesystem device to send the FUSE_CREATE request to. On output, the FUSE request counter "VirtioFs->RequestId" will have been incremented. |
[in] | ParentNodeId | The inode number of the direct parent directory of the regular file to open or create. |
[in] | Name | The single-component filename of the regular file to open or create, under the parent directory identified by ParentNodeId. |
[out] | NodeId | The inode number of the regular file, returned by the Virtio Filesystem device. |
[out] | FuseHandle | The open file handle returned by the Virtio Filesystem device. |
EFI_SUCCESS | The regular file has been opened, and (if necessary) created. |
Definition at line 48 of file FuseOpenOrCreate.c.
EFI_STATUS VirtioFsFuseReadFileOrDir | ( | IN OUT VIRTIO_FS * | VirtioFs, |
IN UINT64 | NodeId, | ||
IN UINT64 | FuseHandle, | ||
IN BOOLEAN | IsDir, | ||
IN UINT64 | Offset, | ||
IN OUT UINT32 * | Size, | ||
OUT VOID * | Data | ||
) |
Read a chunk from a regular file or a directory stream, by sending the FUSE_READ / FUSE_READDIRPLUS request to the Virtio Filesystem device.
The function may only be called after VirtioFsFuseInitSession() returns successfully and before VirtioFsUninit() is called.
[in,out] | VirtioFs | The Virtio Filesystem device to send the FUSE_READ or FUSE_READDIRPLUS request to. On output, the FUSE request counter "VirtioFs->RequestId" will have been incremented. |
[in] | NodeId | The inode number of the regular file or directory stream to read from. |
[in] | FuseHandle | The open handle to the regular file or directory stream to read from. |
[in] | IsDir | TRUE if NodeId and FuseHandle refer to a directory, FALSE if NodeId and FuseHandle refer to a regular file. |
[in] | Offset | If IsDir is FALSE: the absolute file position at which to start reading. |
If IsDir is TRUE: the directory stream cookie at which to start or continue reading. The zero-valued cookie identifies the start of the directory stream. Further positions in the directory stream can be passed in from the CookieForNextEntry field of VIRTIO_FS_FUSE_DIRENTPLUS_RESPONSE.
[in,out] | Size | On input, the number of bytes to read. On successful return, the number of bytes actually read, which may be smaller than the value on input. |
When reading a regular file (i.e., when IsDir is FALSE), EOF can be detected by passing in a nonzero Size, and finding a zero Size on output.
When reading a directory stream (i.e., when IsDir is TRUE), Data consists of a sequence of variably-sized records (directory entries). A read operation returns the maximal sequence of records that fits in Size, without having to truncate a record. In order to guarantee progress, call
VirtioFsFuseStatFs (VirtioFs, NodeId, &FilesysAttr)
first, to learn the maximum Namelen for the directory stream. Then assign Size at least
VIRTIO_FS_FUSE_DIRENTPLUS_RESPONSE_SIZE ( FilesysAttr.Namelen)
on input. (Remember that VIRTIO_FS_FUSE_DIRENTPLUS_RESPONSE_SIZE() may return 0 if its Namelen argument is invalid.) EOF can be detected if Size is set on input like described above, and Size is zero on output.
[out] | Data | Buffer to read the bytes from the regular file or the directory stream into. The caller is responsible for providing room for (at least) as many bytes in Data as Size is on input. |
EFI_SUCCESS | Read successful. The caller is responsible for checking Size to learn the actual byte count transferred. |
Definition at line 89 of file FuseRead.c.
EFI_STATUS VirtioFsFuseReleaseFileOrDir | ( | IN OUT VIRTIO_FS * | VirtioFs, |
IN UINT64 | NodeId, | ||
IN UINT64 | FuseHandle, | ||
IN BOOLEAN | IsDir | ||
) |
Close a regular file or a directory that is open, by sending the FUSE_RELEASE or FUSE_RELEASEDIR request to the Virtio Filesystem device.
The function may only be called after VirtioFsFuseInitSession() returns successfully and before VirtioFsUninit() is called.
[in,out] | VirtioFs | The Virtio Filesystem device to send the FUSE_RELEASE / FUSE_RELEASEDIR request to. On output, the FUSE request counter "VirtioFs->RequestId" will have been incremented. |
[in] | NodeId | The inode number of the file or directory to close. |
[in] | FuseHandle | The open handle to the file or directory to close. |
[in] | IsDir | TRUE if NodeId and FuseHandle refer to a directory, FALSE if NodeId and FuseHandle refer to a regular file. |
EFI_SUCCESS | The file or directory has been closed. |
Definition at line 41 of file FuseRelease.c.
EFI_STATUS VirtioFsFuseRemoveFileOrDir | ( | IN OUT VIRTIO_FS * | VirtioFs, |
IN UINT64 | ParentNodeId, | ||
IN CHAR8 * | Name, | ||
IN BOOLEAN | IsDir | ||
) |
Remove a regular file or a directory, by sending the FUSE_UNLINK or FUSE_RMDIR request to the Virtio Filesystem device.
The function may only be called after VirtioFsFuseInitSession() returns successfully and before VirtioFsUninit() is called.
[in,out] | VirtioFs | The Virtio Filesystem device to send the FUSE_UNLINK / FUSE_RMDIR request to. On output, the FUSE request counter "VirtioFs->RequestId" will have been incremented. |
[in] | ParentNodeId | The inode number of the directory in which Name should be removed. |
[in] | Name | The single-component filename to remove in the directory identified by ParentNodeId. |
[in] | IsDir | TRUE if Name refers to a directory, FALSE otherwise. |
EFI_SUCCESS | The file or directory has been removed. |
Definition at line 43 of file FuseUnlink.c.
EFI_STATUS VirtioFsFuseRename | ( | IN OUT VIRTIO_FS * | VirtioFs, |
IN UINT64 | OldParentNodeId, | ||
IN CHAR8 * | OldName, | ||
IN UINT64 | NewParentNodeId, | ||
IN CHAR8 * | NewName | ||
) |
Rename a regular file or a directory, by sending the FUSE_RENAME2 request to the Virtio Filesystem device. If the new filename exists, the request will fail.
The function may only be called after VirtioFsFuseInitSession() returns successfully and before VirtioFsUninit() is called.
[in,out] | VirtioFs | The Virtio Filesystem device to send the FUSE_RENAME2 request to. On output, the FUSE request counter "VirtioFs->RequestId" will have been incremented. |
[in] | OldParentNodeId | The inode number of the directory in which OldName should be removed. |
[in] | OldName | The single-component filename to remove in the directory identified by OldParentNodeId. |
[in] | NewParentNodeId | The inode number of the directory in which NewName should be created, such that on successful return, (NewParentNodeId, NewName) refer to the same inode as (OldParentNodeId, OldName) did on entry. |
[in] | NewName | The single-component filename to create in the directory identified by NewParentNodeId. |
EFI_SUCCESS | The file or directory has been renamed. |
Definition at line 51 of file FuseRename.c.
EFI_STATUS VirtioFsFuseSetAttr | ( | IN OUT VIRTIO_FS * | VirtioFs, |
IN UINT64 | NodeId, | ||
IN UINT64 *Size | OPTIONAL, | ||
IN UINT64 *Atime | OPTIONAL, | ||
IN UINT64 *Mtime | OPTIONAL, | ||
IN UINT32 *Mode | OPTIONAL | ||
) |
Send the FUSE_SETATTR request to the Virtio Filesystem device, for changing the attributes of an inode.
The function may only be called after VirtioFsFuseInitSession() returns successfully and before VirtioFsUninit() is called.
[in,out] | VirtioFs | The Virtio Filesystem device to send the FUSE_SETATTR request to. On output, the FUSE request counter "VirtioFs->RequestId" will have been incremented. |
[in] | NodeId | The inode number representing the regular file or directory whose attributes should be changed. |
[in] | Size | The new size to set for the regular file. If NULL, then the file size will not be changed. If NodeId refers to a directory, then the caller is responsible for passing NULL as Size. |
[in] | Atime | The new last access time to set for the regular file or directory (seconds since the Epoch). If NULL, then the last access time is not changed. |
[in] | Mtime | The new last modification time to set for the regular file or directory (seconds since the Epoch). If NULL, then the last modification time is not changed. |
[in] | Mode | The new file mode bits to set for the regular file or directory. If NULL, then the file mode bits are not changed. |
EFI_SUCCESS | The attributes have been updated. |
Definition at line 54 of file FuseSetAttr.c.
EFI_STATUS VirtioFsFuseStatFs | ( | IN OUT VIRTIO_FS * | VirtioFs, |
IN UINT64 | NodeId, | ||
OUT VIRTIO_FS_FUSE_STATFS_RESPONSE * | FilesysAttr | ||
) |
Send the FUSE_STATFS request to the Virtio Filesysem device, for retrieving the attributes of the host-side filesystem that contains NodeId.
The function may only be called after VirtioFsFuseInitSession() returns successfully and before VirtioFsUninit() is called.
[in,out] | VirtioFs | The Virtio Filesystem device to send the FUSE_STATFS request to. On output, the FUSE request counter "VirtioFs->RequestId" will have been incremented. |
[in] | NodeId | The inode whose containing filesystem is to be queried for its attributes. |
[out] | FilesysAttr | The VIRTIO_FS_FUSE_STATFS_RESPONSE object describing the filesystem that underlies NodeId. |
EFI_SUCCESS | FilesysAttr has been filled in. |
Definition at line 38 of file FuseStatFs.c.
EFI_STATUS VirtioFsFuseWrite | ( | IN OUT VIRTIO_FS * | VirtioFs, |
IN UINT64 | NodeId, | ||
IN UINT64 | FuseHandle, | ||
IN UINT64 | Offset, | ||
IN OUT UINT32 * | Size, | ||
IN VOID * | Data | ||
) |
Write a chunk to a regular file, by sending the FUSE_WRITE request to the Virtio Filesystem device.
The function may only be called after VirtioFsFuseInitSession() returns successfully and before VirtioFsUninit() is called.
[in,out] | VirtioFs | The Virtio Filesystem device to send the FUSE_WRITE request to. On output, the FUSE request counter "VirtioFs->RequestId" will have been incremented. |
[in] | NodeId | The inode number of the regular file to write to. |
[in] | FuseHandle | The open handle to the regular file to write to. |
[in] | Offset | The absolute file position at which to start writing. |
[in,out] | Size | On input, the number of bytes to write. On successful return, the number of bytes actually written, which may be smaller than the value on input. |
[in] | Data | The buffer to write to the regular file. |
EFI_SUCCESS | Write successful. The caller is responsible for checking Size to learn the actual byte count transferred. |
EFI_BAD_BUFFER_SIZE | On input, Size is larger than "VirtioFs->MaxWrite". |
Definition at line 54 of file FuseWrite.c.
EFI_STATUS VirtioFsGetBasename | ( | IN CHAR8 * | Path, |
OUT CHAR16 *Basename | OPTIONAL, | ||
IN OUT UINTN * | BasenameSize | ||
) |
Format the last component of a canonical pathname into a caller-provided CHAR16 array.
[in] | Path | The canonical pathname (as defined in the description of VirtioFsAppendPath()) to format the last component of. |
[out] | Basename | If BasenameSize is zero on input, Basename may be NULL. Otherwise, Basename is allocated by the caller. On successful return, Basename contains the last component of Path, formatted as a NUL-terminated CHAR16 string. When Path is "/" on input, Basename is L"" on output. |
[in,out] | BasenameSize | On input, the number of bytes the caller provides in Basename. On output, regardless of return value, the number of bytes required for formatting Basename, including the terminating L'\0'. |
EFI_SUCCESS | Basename has been filled in. |
EFI_BUFFER_TOO_SMALL | BasenameSize was too small on input; Basename has not been modified. |
EFI_STATUS VirtioFsGetFuseModeUpdate | ( | IN EFI_FILE_INFO * | Info, |
IN EFI_FILE_INFO * | NewInfo, | ||
OUT BOOLEAN * | Update, | ||
OUT UINT32 * | Mode | ||
) |
Given an EFI_FILE_INFO object received in an EFI_FILE_PROTOCOL.SetInfo() call, determine whether updating the file mode bits of the file is necessary, relative to an EFI_FILE_INFO object describing the current state of the file.
[in] | Info | The EFI_FILE_INFO describing the current state of the file. The caller is responsible for populating Info on input with VirtioFsFuseAttrToEfiFileInfo(), from the current FUSE attributes of the file. The Info->Size and Info->FileName members are ignored. |
[in] | NewInfo | The EFI_FILE_INFO object received in the EFI_FILE_PROTOCOL.SetInfo() call. |
[out] | Update | Set to TRUE on output if the file mode bits need to be updated. Set to FALSE otherwise. |
[out] | Mode | If Update is set to TRUE, then Mode provides the file mode bits to set. Otherwise, Mode is not written to. |
EFI_SUCCESS | Output parameters have been set successfully. |
EFI_ACCESS_DENIED | NewInfo requests toggling an unknown bit in the Attribute bitmask. |
EFI_ACCESS_DENIED | NewInfo requests toggling EFI_FILE_DIRECTORY in the Attribute bitmask. |
VOID VirtioFsGetFuseSizeUpdate | ( | IN EFI_FILE_INFO * | Info, |
IN EFI_FILE_INFO * | NewInfo, | ||
OUT BOOLEAN * | Update, | ||
OUT UINT64 * | Size | ||
) |
Given an EFI_FILE_INFO object received in an EFI_FILE_PROTOCOL.SetInfo() call, determine whether updating the size of the file is necessary, relative to an EFI_FILE_INFO object describing the current state of the file.
[in] | Info | The EFI_FILE_INFO describing the current state of the file. The caller is responsible for populating Info on input with VirtioFsFuseAttrToEfiFileInfo(), from the current FUSE attributes of the file. The Info->Size and Info->FileName members are ignored. |
[in] | NewInfo | The EFI_FILE_INFO object received in the EFI_FILE_PROTOCOL.SetInfo() call. |
[out] | Update | Set to TRUE on output if the file size needs to be updated. Set to FALSE otherwise. |
[out] | Size | If Update is set to TRUE, then Size provides the new file size to set. Otherwise, Size is not written to. |
EFI_STATUS VirtioFsGetFuseTimeUpdates | ( | IN EFI_FILE_INFO * | Info, |
IN EFI_FILE_INFO * | NewInfo, | ||
OUT BOOLEAN * | UpdateAtime, | ||
OUT BOOLEAN * | UpdateMtime, | ||
OUT UINT64 * | Atime, | ||
OUT UINT64 * | Mtime | ||
) |
Given an EFI_FILE_INFO object received in an EFI_FILE_PROTOCOL.SetInfo() call, determine whether updating the last access time and/or the last modification time of the file is necessary, relative to an EFI_FILE_INFO object describing the current state of the file.
[in] | Info | The EFI_FILE_INFO describing the current state of the file. The caller is responsible for populating Info on input with VirtioFsFuseAttrToEfiFileInfo(), from the current FUSE attributes of the file. The Info->Size and Info->FileName members are ignored. |
[in] | NewInfo | The EFI_FILE_INFO object received in the EFI_FILE_PROTOCOL.SetInfo() call. |
[out] | UpdateAtime | Set to TRUE on output if the last access time needs to be updated. Set to FALSE otherwise. |
[out] | UpdateMtime | Set to TRUE on output if the last modification time needs to be updated. Set to FALSE otherwise. |
[out] | Atime | If UpdateAtime is set to TRUE, then Atime provides the last access timestamp to set (as seconds since the Epoch). Otherwise, Atime is not written to. |
[out] | Mtime | If UpdateMtime is set to TRUE, then Mtime provides the last modification timestamp to set (as seconds since the Epoch). Otherwise, Mtime is not written to. |
EFI_SUCCESS | Output parameters have been set successfully. |
EFI_INVALID_PARAMETER | At least one of the CreateTime, LastAccessTime and ModificationTime fields in NewInfo represents an actual update relative to the current state of the file (expressed in Info), but does not satisfy the UEFI spec requirements on EFI_TIME. |
EFI_ACCESS_DENIED | NewInfo requests changing both CreateTime and ModificationTime, but to values that differ from each other. The Virtio Filesystem device does not support this. |
EFI_STATUS VirtioFsInit | ( | IN OUT VIRTIO_FS * | VirtioFs | ) |
Configure the Virtio Filesystem device underlying VirtioFs.
[in,out] | VirtioFs | The VIRTIO_FS object for which Virtio communication should be set up. On input, the caller is responsible for VirtioFs->Virtio having been initialized. On output, synchronous Virtio Filesystem commands (primitives) may be submitted to the device. |
EFI_SUCCESS | Virtio machinery has been set up. |
EFI_UNSUPPORTED | The host-side configuration of the Virtio Filesystem is not supported by this driver. |
EFI_STATUS VirtioFsLookupMostSpecificParentDir | ( | IN OUT VIRTIO_FS * | VirtioFs, |
IN OUT CHAR8 * | Path, | ||
OUT UINT64 * | DirNodeId, | ||
OUT CHAR8 ** | LastComponent | ||
) |
For a given canonical pathname (as defined at VirtioFsAppendPath()), look up the NodeId of the most specific parent directory, plus output a pointer to the last pathname component (which is therefore a direct child of said parent directory).
The function may only be called after VirtioFsFuseInitSession() returns successfully and before VirtioFsUninit() is called.
[in,out] | VirtioFs | The Virtio Filesystem device to send FUSE_LOOKUP and FUSE_FORGET requests to. On output, the FUSE request counter "VirtioFs->RequestId" will have been incremented several times. |
[in,out] | Path | The canonical pathname (as defined in the description of VirtioFsAppendPath()) to split. Path is modified in-place temporarily; however, on return (successful or otherwise), Path reassumes its original contents. |
[out] | DirNodeId | The NodeId of the most specific parent directory identified by Path. The caller is responsible for sending a FUSE_FORGET request to the Virtio Filesystem device for DirNodeId – unless DirNodeId equals VIRTIO_FS_FUSE_ROOT_DIR_NODE_ID –, when DirNodeId's use ends. |
[out] | LastComponent | A pointer into Path, pointing at the start of the last pathname component. |
EFI_SUCCESS | Splitting successful. |
EFI_INVALID_PARAMETER | Path is "/". |
EFI_ACCESS_DENIED | One of the components on Path before the last is not a directory. |
EFI_STATUS EFIAPI VirtioFsOpenVolume | ( | IN EFI_SIMPLE_FILE_SYSTEM_PROTOCOL * | This, |
OUT EFI_FILE_PROTOCOL ** | Root | ||
) |
Open the root directory on the Virtio Filesystem.
Refer to EFI_SIMPLE_FILE_SYSTEM_PROTOCOL_OPEN_VOLUME for the interface contract.
Definition at line 23 of file SimpleFsOpenVolume.c.
EFI_STATUS VirtioFsSgListsSubmit | ( | IN OUT VIRTIO_FS * | VirtioFs, |
IN OUT VIRTIO_FS_SCATTER_GATHER_LIST * | RequestSgList, | ||
IN OUT VIRTIO_FS_SCATTER_GATHER_LIST *ResponseSgList | OPTIONAL | ||
) |
Submit a validated pair of (request buffer list, response buffer list) to the Virtio Filesystem device.
On input, the pair of VIRTIO_FS_SCATTER_GATHER_LIST objects must have been validated together, using the VirtioFsSgListsValidate() function.
On output (on successful return), the following fields will be re-initialized to zero (after temporarily setting them to different values):
On output (on successful return), the following fields will be calculated:
The function may only be called after VirtioFsInit() returns successfully and before VirtioFsUninit() is called.
[in,out] | VirtioFs | The Virtio Filesystem device that the request-response exchange, expressed via RequestSgList and ResponseSgList, should now be submitted to. |
[in,out] | RequestSgList | The scatter-gather list that describes the request part of the exchange – the buffers that should be sent to the Virtio Filesystem device in the virtio transfer. |
[in,out] | ResponseSgList | The scatter-gather list that describes the response part of the exchange – the buffers that the Virtio Filesystem device should populate in the virtio transfer. May be NULL if and only if NULL was passed to VirtioFsSgListsValidate() as ResponseSgList. |
EFI_SUCCESS | Transfer complete. The caller should investigate the VIRTIO_FS_IO_VECTOR.Transferred fields in ResponseSgList, to ensure coverage of the relevant response buffers. Subsequently, the caller should investigate the contents of those buffers. |
EFI_DEVICE_ERROR | The Virtio Filesystem device reported populating more response bytes than ResponseSgList->TotalSize. |
EFI_STATUS VirtioFsSgListsValidate | ( | IN VIRTIO_FS * | VirtioFs, |
IN OUT VIRTIO_FS_SCATTER_GATHER_LIST * | RequestSgList, | ||
IN OUT VIRTIO_FS_SCATTER_GATHER_LIST *ResponseSgList | OPTIONAL | ||
) |
Validate two VIRTIO_FS_SCATTER_GATHER_LIST objects – list of request buffers, list of response buffers – together.
On input, the caller is required to populate the following fields:
On output (on successful return), the following fields will be zero-initialized:
On output (on successful return), the following fields will be calculated:
The function may only be called after VirtioFsInit() returns successfully and before VirtioFsUninit() is called.
[in] | VirtioFs | The Virtio Filesystem device that the request-response exchange, expressed via RequestSgList and ResponseSgList, will be submitted to. |
[in,out] | RequestSgList | The scatter-gather list that describes the request part of the exchange – the buffers that should be sent to the Virtio Filesystem device in the virtio transfer. |
[in,out] | ResponseSgList | The scatter-gather list that describes the response part of the exchange – the buffers that the Virtio Filesystem device should populate in the virtio transfer. May be NULL if the exchange with the Virtio Filesystem device consists of a request only, with the response part omitted altogether. |
EFI_SUCCESS | RequestSgList and ResponseSgList have been validated, output fields have been set. |
EFI_INVALID_PARAMETER | RequestSgList is NULL. |
EFI_INVALID_PARAMETER | On input, a VIRTIO_FS_SCATTER_GATHER_LIST.IoVec field is NULL, or a VIRTIO_FS_SCATTER_GATHER_LIST.NumVec field is zero. |
EFI_INVALID_PARAMETER | On input, a VIRTIO_FS_IO_VECTOR.Buffer field is NULL, or a VIRTIO_FS_IO_VECTOR.Size field is zero. |
EFI_UNSUPPORTED | (RequestSgList->NumVec + ResponseSgList->NumVec) exceeds VirtioFs->QueueSize, meaning that the total list of buffers cannot be placed on the virtio queue in a single descriptor chain (with one descriptor per buffer). |
EFI_UNSUPPORTED | One of the VIRTIO_FS_SCATTER_GATHER_LIST.TotalSize fields would exceed MAX_UINT32. |
EFI_STATUS EFIAPI VirtioFsSimpleFileClose | ( | IN EFI_FILE_PROTOCOL * | This | ) |
Definition at line 16 of file SimpleFsClose.c.
EFI_STATUS EFIAPI VirtioFsSimpleFileDelete | ( | IN EFI_FILE_PROTOCOL * | This | ) |
Definition at line 16 of file SimpleFsDelete.c.
EFI_STATUS EFIAPI VirtioFsSimpleFileFlush | ( | IN EFI_FILE_PROTOCOL * | This | ) |
Definition at line 13 of file SimpleFsFlush.c.
EFI_STATUS EFIAPI VirtioFsSimpleFileGetInfo | ( | IN EFI_FILE_PROTOCOL * | This, |
IN EFI_GUID * | InformationType, | ||
IN OUT UINTN * | BufferSize, | ||
OUT VOID * | Buffer | ||
) |
Definition at line 204 of file SimpleFsGetInfo.c.
EFI_STATUS EFIAPI VirtioFsSimpleFileGetPosition | ( | IN EFI_FILE_PROTOCOL * | This, |
OUT UINT64 * | Position | ||
) |
Definition at line 14 of file SimpleFsGetPosition.c.
EFI_STATUS EFIAPI VirtioFsSimpleFileOpen | ( | IN EFI_FILE_PROTOCOL * | This, |
OUT EFI_FILE_PROTOCOL ** | NewHandle, | ||
IN CHAR16 * | FileName, | ||
IN UINT64 | OpenMode, | ||
IN UINT64 | Attributes | ||
) |
Definition at line 310 of file SimpleFsOpen.c.
EFI_STATUS EFIAPI VirtioFsSimpleFileRead | ( | IN EFI_FILE_PROTOCOL * | This, |
IN OUT UINTN * | BufferSize, | ||
OUT VOID * | Buffer | ||
) |
Definition at line 431 of file SimpleFsRead.c.
EFI_STATUS EFIAPI VirtioFsSimpleFileSetInfo | ( | IN EFI_FILE_PROTOCOL * | This, |
IN EFI_GUID * | InformationType, | ||
IN UINTN | BufferSize, | ||
IN VOID * | Buffer | ||
) |
Definition at line 621 of file SimpleFsSetInfo.c.
EFI_STATUS EFIAPI VirtioFsSimpleFileSetPosition | ( | IN EFI_FILE_PROTOCOL * | This, |
IN UINT64 | Position | ||
) |
Definition at line 16 of file SimpleFsSetPosition.c.
EFI_STATUS EFIAPI VirtioFsSimpleFileWrite | ( | IN EFI_FILE_PROTOCOL * | This, |
IN OUT UINTN * | BufferSize, | ||
IN VOID * | Buffer | ||
) |
Definition at line 13 of file SimpleFsWrite.c.
De-configure the Virtio Filesystem device underlying VirtioFs.
[in] | VirtioFs | The VIRTIO_FS object for which Virtio communication should be torn down. On input, the caller is responsible for having called VirtioFsInit(). On output, Virtio Filesystem commands (primitives) must no longer be submitted to the device. |