TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
EFI_STATUS | VirtioFsFuseRemoveFileOrDir (IN OUT VIRTIO_FS *VirtioFs, IN UINT64 ParentNodeId, IN CHAR8 *Name, IN BOOLEAN IsDir) |
FUSE_UNLINK / FUSE_RMDIR wrapper for the Virtio Filesystem device.
Copyright (C) 2020, Red Hat, Inc.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file FuseUnlink.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.