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

Go to the source code of this file.

Functions

EFI_STATUS VirtioFsFuseGetAttr (IN OUT VIRTIO_FS *VirtioFs, IN UINT64 NodeId, OUT VIRTIO_FS_FUSE_ATTRIBUTES_RESPONSE *FuseAttr)
 

Detailed Description

FUSE_GETATTR wrapper for the Virtio Filesystem device.

Copyright (C) 2020, Red Hat, Inc.

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

Definition in file FuseGetAttr.c.

Function Documentation

◆ VirtioFsFuseGetAttr()

EFI_STATUS VirtioFsFuseGetAttr ( IN OUT VIRTIO_FS VirtioFs,
IN UINT64  NodeId,
OUT VIRTIO_FS_FUSE_ATTRIBUTES_RESPONSE FuseAttr 
)

Send a FUSE_GETATTR request to the Virtio Filesystem device, for fetching the attributes of an inode.

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_GETATTR request to. On output, the FUSE request counter "VirtioFs->RequestId" will have been incremented.
[in]NodeIdThe inode number for which the attributes should be retrieved.
[out]FuseAttrThe VIRTIO_FS_FUSE_ATTRIBUTES_RESPONSE object describing the properties of the inode.
Return values
EFI_SUCCESSFuseAttr has been filled in.
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 39 of file FuseGetAttr.c.