TianoCore EDK2 master
Loading...
Searching...
No Matches
FuseMkDir.c File Reference
#include <Library/BaseLib.h>
#include "VirtioFsDxe.h"

Go to the source code of this file.

Functions

EFI_STATUS VirtioFsFuseMkDir (IN OUT VIRTIO_FS *VirtioFs, IN UINT64 ParentNodeId, IN CHAR8 *Name, OUT UINT64 *NodeId)
 

Detailed Description

FUSE_MKDIR wrapper for the Virtio Filesystem device.

Copyright (C) 2020, Red Hat, Inc.

SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file FuseMkDir.c.

Function Documentation

◆ VirtioFsFuseMkDir()

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.

Parameters
[in,out]VirtioFsThe Virtio Filesystem device to send the FUSE_MKDIR request to. On output, the FUSE request counter "VirtioFs->RequestId" will have been incremented.
[in]ParentNodeIdThe inode number of the direct parent directory of the directory to create.
[in]NameThe single-component filename of the directory to create, under the parent directory identified by ParentNodeId.
[out]NodeIdThe inode number of the new directory.
Return values
EFI_SUCCESSThe directory has been created.
Returns
The "errno" value mapped to an EFI_STATUS code, if the Virtio Filesystem device explicitly reported an error.
Error codes propagated from VirtioFsSgListsValidate(), VirtioFsFuseNewRequest(), VirtioFsSgListsSubmit(), VirtioFsFuseCheckResponse().

Definition at line 43 of file FuseMkDir.c.