TianoCore EDK2 master
|
#include "VirtioFsDxe.h"
Go to the source code of this file.
Functions | |
EFI_STATUS | VirtioFsFuseWrite (IN OUT VIRTIO_FS *VirtioFs, IN UINT64 NodeId, IN UINT64 FuseHandle, IN UINT64 Offset, IN OUT UINT32 *Size, IN VOID *Data) |
FUSE_WRITE wrapper for the Virtio Filesystem device.
Copyright (C) 2020, Red Hat, Inc.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file FuseWrite.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.