TianoCore EDK2 master
Loading...
Searching...
No Matches
RamDiskFileExplorer.c File Reference
#include "RamDiskImpl.h"

Go to the source code of this file.

Functions

BOOLEAN GrowBuffer (IN OUT EFI_STATUS *Status, IN OUT VOID **Buffer, IN UINTN BufferSize)
 
EFI_FILE_INFOFileInfo (IN EFI_FILE_HANDLE FHand)
 

Detailed Description

Internal file explorer helper functions for RamDiskDxe driver.

Copyright (c) 2016, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file RamDiskFileExplorer.c.

Function Documentation

◆ FileInfo()

EFI_FILE_INFO * FileInfo ( IN EFI_FILE_HANDLE  FHand)

This function gets the file information from an open file descriptor, and stores it in a buffer allocated from pool.

Parameters
[in]FHandFile Handle.
Returns
A pointer to a buffer with file information or NULL is returned.

Definition at line 79 of file RamDiskFileExplorer.c.

◆ GrowBuffer()

BOOLEAN GrowBuffer ( IN OUT EFI_STATUS Status,
IN OUT VOID **  Buffer,
IN UINTN  BufferSize 
)

Helper function called as part of the code needed to allocate the proper sized buffer for various EFI interfaces.

Parameters
[in,out]StatusCurrent status.
[in,out]BufferCurrent allocated buffer, or NULL.
[in]BufferSizeCurrent buffer size needed.
Return values
TRUEIf the buffer was reallocated and the caller should try the API again.
FALSEThe caller should not call this function again.

Definition at line 25 of file RamDiskFileExplorer.c.