TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
STATIC EFI_STATUS | OpenRootDirectory (IN OUT VIRTIO_FS *VirtioFs, OUT EFI_FILE_PROTOCOL **NewHandle, IN BOOLEAN OpenForWriting) |
STATIC EFI_STATUS | OpenExistentFileOrDirectory (IN OUT VIRTIO_FS *VirtioFs, IN UINT64 DirNodeId, IN CHAR8 *Name, IN BOOLEAN OpenForWriting, OUT UINT64 *NodeId, OUT UINT64 *FuseHandle, OUT BOOLEAN *NodeIsDirectory) |
STATIC EFI_STATUS | CreateDirectory (IN OUT VIRTIO_FS *VirtioFs, IN UINT64 DirNodeId, IN CHAR8 *Name, OUT UINT64 *NodeId, OUT UINT64 *FuseHandle) |
STATIC EFI_STATUS | CreateRegularFile (IN OUT VIRTIO_FS *VirtioFs, IN UINT64 DirNodeId, IN CHAR8 *Name, OUT UINT64 *NodeId, OUT UINT64 *FuseHandle) |
EFI_STATUS EFIAPI | VirtioFsSimpleFileOpen (IN EFI_FILE_PROTOCOL *This, OUT EFI_FILE_PROTOCOL **NewHandle, IN CHAR16 *FileName, IN UINT64 OpenMode, IN UINT64 Attributes) |
EFI_FILE_PROTOCOL.Open() member function for the Virtio Filesystem driver.
Copyright (C) 2020, Red Hat, Inc.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file SimpleFsOpen.c.
STATIC EFI_STATUS CreateDirectory | ( | IN OUT VIRTIO_FS * | VirtioFs, |
IN UINT64 | DirNodeId, | ||
IN CHAR8 * | Name, | ||
OUT UINT64 * | NodeId, | ||
OUT UINT64 * | FuseHandle | ||
) |
Create a directory.
[in,out] | VirtioFs | The Virtio Filesystem device on which the directory should be created. |
[in] | DirNodeId | The inode number of the immediate parent directory of the directory to create. |
[in] | Name | The single-component filename of the directory to create, under the immediate parent directory identified by DirNodeId. |
[out] | NodeId | The inode number of the directory created, returned by the Virtio Filesystem device. |
[out] | FuseHandle | The open handle to the directory created, returned by the Virtio Filesystem device. |
EFI_SUCCESS | The directory has been created successfully. |
Definition at line 234 of file SimpleFsOpen.c.
STATIC EFI_STATUS CreateRegularFile | ( | IN OUT VIRTIO_FS * | VirtioFs, |
IN UINT64 | DirNodeId, | ||
IN CHAR8 * | Name, | ||
OUT UINT64 * | NodeId, | ||
OUT UINT64 * | FuseHandle | ||
) |
Create a regular file.
[in,out] | VirtioFs | The Virtio Filesystem device on which the regular file should be created. |
[in] | DirNodeId | The inode number of the immediate parent directory of the regular file to create. |
[in] | Name | The single-component filename of the regular file to create, under the immediate parent directory identified by DirNodeId. |
[out] | NodeId | The inode number of the regular file created, returned by the Virtio Filesystem device. |
[out] | FuseHandle | The open handle to the regular file created, returned by the Virtio Filesystem device. |
EFI_SUCCESS | The regular file has been created successfully. |
Definition at line 291 of file SimpleFsOpen.c.
STATIC EFI_STATUS OpenExistentFileOrDirectory | ( | IN OUT VIRTIO_FS * | VirtioFs, |
IN UINT64 | DirNodeId, | ||
IN CHAR8 * | Name, | ||
IN BOOLEAN | OpenForWriting, | ||
OUT UINT64 * | NodeId, | ||
OUT UINT64 * | FuseHandle, | ||
OUT BOOLEAN * | NodeIsDirectory | ||
) |
Open an existent regular file or non-root directory.
[in,out] | VirtioFs | The Virtio Filesystem device on which the regular file or directory should be opened. |
[in] | DirNodeId | The inode number of the immediate parent directory of the regular file or directory to open. |
[in] | Name | The single-component filename of the regular file or directory to open, under the immediate parent directory identified by DirNodeId. |
[in] | OpenForWriting | TRUE if the regular file or directory should be opened for read-write access. FALSE if the regular file or directory should be opened for read-only access. Opening a directory for read-write access is useful for deleting, renaming, syncing or touching the directory later. |
[out] | NodeId | The inode number of the regular file or directory, returned by the Virtio Filesystem device. |
[out] | FuseHandle | The open handle to the regular file or directory, returned by the Virtio Filesystem device. |
[out] | NodeIsDirectory | Set to TRUE on output if Name was found to refer to a directory. Set to FALSE if Name was found to refer to a regular file. |
EFI_SUCCESS | The regular file or directory has been looked up and opened successfully. |
EFI_ACCESS_DENIED | OpenForWriting is TRUE, but the regular file or directory is marked read-only. |
EFI_NOT_FOUND | A directory entry called Name was not found in the directory identified by DirNodeId. (EFI_NOT_FOUND is not returned for any other condition.) |
Definition at line 139 of file SimpleFsOpen.c.
STATIC EFI_STATUS OpenRootDirectory | ( | IN OUT VIRTIO_FS * | VirtioFs, |
OUT EFI_FILE_PROTOCOL ** | NewHandle, | ||
IN BOOLEAN | OpenForWriting | ||
) |
Open the root directory, possibly for writing.
[in,out] | VirtioFs | The Virtio Filesystem device whose root directory should be opened. |
[out] | NewHandle | The new EFI_FILE_PROTOCOL instance through which the root directory can be accessed. |
[in] | OpenForWriting | TRUE if the root directory should be opened for read-write access. FALSE if the root directory should be opened for read-only access. Opening the root directory for read-write access is useful for calling EFI_FILE_PROTOCOL.Flush() or EFI_FILE_PROTOCOL.SetInfo() later, for syncing or touching the root directory, respectively. |
EFI_SUCCESS | The root directory has been opened successfully. |
EFI_ACCESS_DENIED | OpenForWriting is TRUE, but the root directory is marked as read-only. |
Definition at line 40 of file SimpleFsOpen.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.