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

Go to the source code of this file.

Functions

EFI_STATUS VirtioFsFuseForget (IN OUT VIRTIO_FS *VirtioFs, IN UINT64 NodeId)
 

Detailed Description

FUSE_FORGET wrapper for the Virtio Filesystem device.

Copyright (C) 2020, Red Hat, Inc.

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

Definition in file FuseForget.c.

Function Documentation

◆ VirtioFsFuseForget()

EFI_STATUS VirtioFsFuseForget ( IN OUT VIRTIO_FS VirtioFs,
IN UINT64  NodeId 
)

Make the Virtio Filesysem device drop one reference count from a NodeId that the driver looked up by filename.

Send the FUSE_FORGET request to the Virtio Filesysem device for this. Unlike most other FUSE requests, FUSE_FORGET doesn't elicit a response, not even the common VIRTIO_FS_FUSE_RESPONSE header.

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_FORGET request to. On output, the FUSE request counter "VirtioFs->RequestId" will have been incremented.
[in]NodeIdThe inode number that the client learned by way of lookup, and that the server should now un-reference exactly once.
Return values
EFI_SUCCESSThe FUSE_FORGET request has been submitted.
Returns
Error codes propagated from VirtioFsSgListsValidate(), VirtioFsFuseNewRequest(), VirtioFsSgListsSubmit().

Definition at line 36 of file FuseForget.c.