TianoCore EDK2 master
Loading...
Searching...
No Matches
FuseOpenDir.c File Reference
#include "VirtioFsDxe.h"

Go to the source code of this file.

Functions

EFI_STATUS VirtioFsFuseOpenDir (IN OUT VIRTIO_FS *VirtioFs, IN UINT64 NodeId, OUT UINT64 *FuseHandle)
 

Detailed Description

FUSE_OPENDIR wrapper for the Virtio Filesystem device.

Copyright (C) 2020, Red Hat, Inc.

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

Definition in file FuseOpenDir.c.

Function Documentation

◆ VirtioFsFuseOpenDir()

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.

Parameters
[in,out]VirtioFsThe Virtio Filesystem device to send the FUSE_OPENDIR request to. On output, the FUSE request counter "VirtioFs->RequestId" will have been incremented.
[in]NodeIdThe inode number of the directory to open.
[out]FuseHandleThe open file handle returned by the Virtio Filesystem device.
Return values
EFI_SUCCESSThe directory has been opened.
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 38 of file FuseOpenDir.c.