TianoCore EDK2 master
|
#include "Udf.h"
Go to the source code of this file.
Macros | |
#define | _ROOT_FILE(_PrivData) (_PrivData)->Root |
#define | _PARENT_FILE(_PrivData) ((_PrivData)->IsRootDirectory ? (_PrivData)->Root : &(_PrivData)->File) |
#define | _FILE(_PrivData) _PARENT_FILE(_PrivData) |
Variables | |
EFI_FILE_PROTOCOL | gUdfFileIoOps |
Handle operations in files and directories from UDF/ECMA-167 file systems.
Copyright (C) 2014-2017 Paulo Alcantara pcacj.nosp@m.r@zy.nosp@m.tor.c.nosp@m.om Copyright (c) 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file File.c.
#define _PARENT_FILE | ( | _PrivData | ) | ((_PrivData)->IsRootDirectory ? (_PrivData)->Root : &(_PrivData)->File) |
EFI_STATUS EFIAPI UdfClose | ( | IN EFI_FILE_PROTOCOL * | This | ) |
EFI_STATUS EFIAPI UdfDelete | ( | IN EFI_FILE_PROTOCOL * | This | ) |
EFI_STATUS EFIAPI UdfFlush | ( | IN EFI_FILE_PROTOCOL * | This | ) |
Flush data back for the file handle.
This | Protocol instance pointer. |
EFI_SUCCESS | Data was flushed. |
EFI_UNSUPPORTED | Writes to Open directory are not supported. |
EFI_NO_MEDIA | The device has no media. |
EFI_DEVICE_ERROR | The device reported an error. |
EFI_VOLUME_CORRUPTED | The file system structures are corrupted. |
EFI_WRITE_PROTECTED | The device is write protected. |
EFI_ACCESS_DENIED | The file was open for read only. |
EFI_VOLUME_FULL | The volume is full. |
EFI_STATUS EFIAPI UdfGetInfo | ( | IN EFI_FILE_PROTOCOL * | This, |
IN EFI_GUID * | InformationType, | ||
IN OUT UINTN * | BufferSize, | ||
OUT VOID * | Buffer | ||
) |
Get information about a file.
This | Protocol instance pointer. |
InformationType | Type of information to return in Buffer. |
BufferSize | On input size of buffer, on output amount of data in buffer. |
Buffer | The buffer to return data. |
EFI_SUCCESS | Data was returned. |
EFI_UNSUPPORTED | InformationType is not supported. |
EFI_NO_MEDIA | The device has no media. |
EFI_DEVICE_ERROR | The device reported an error. |
EFI_VOLUME_CORRUPTED | The file system structures are corrupted. |
EFI_WRITE_PROTECTED | The device is write protected. |
EFI_ACCESS_DENIED | The file was open for read only. |
EFI_BUFFER_TOO_SMALL | Buffer was too small; required size returned in BufferSize. |
EFI_STATUS EFIAPI UdfGetPosition | ( | IN EFI_FILE_PROTOCOL * | This, |
OUT UINT64 * | Position | ||
) |
EFI_STATUS EFIAPI UdfOpen | ( | IN EFI_FILE_PROTOCOL * | This, |
OUT EFI_FILE_PROTOCOL ** | NewHandle, | ||
IN CHAR16 * | FileName, | ||
IN UINT64 | OpenMode, | ||
IN UINT64 | Attributes | ||
) |
Opens a new file relative to the source file's location.
This | The protocol instance pointer. |
NewHandle | Returns File Handle for FileName. |
FileName | Null terminated string. "\", ".", and ".." are supported. |
OpenMode | Open mode for file. |
Attributes | Only used for EFI_FILE_MODE_CREATE. |
EFI_SUCCESS | The device was opened. |
EFI_NOT_FOUND | The specified file could not be found on the device. |
EFI_NO_MEDIA | The device has no media. |
EFI_MEDIA_CHANGED | The media has changed. |
EFI_DEVICE_ERROR | The device reported an error. |
EFI_VOLUME_CORRUPTED | The file system structures are corrupted. |
EFI_ACCESS_DENIED | The service denied access to the file. |
EFI_OUT_OF_RESOURCES | The volume was not opened due to lack of resources. |
EFI_VOLUME_FULL | The volume is full. |
EFI_STATUS EFIAPI UdfOpenVolume | ( | IN EFI_SIMPLE_FILE_SYSTEM_PROTOCOL * | This, |
OUT EFI_FILE_PROTOCOL ** | Root | ||
) |
Open the root directory on a volume.
This | Protocol instance pointer. |
Root | Returns an Open file handle for the root directory |
EFI_SUCCESS | The device was opened. |
EFI_UNSUPPORTED | This volume does not support the file system. |
EFI_NO_MEDIA | The device has no media. |
EFI_DEVICE_ERROR | The device reported an error. |
EFI_VOLUME_CORRUPTED | The file system structures are corrupted. |
EFI_ACCESS_DENIED | The service denied access to the file. |
EFI_OUT_OF_RESOURCES | The volume was not opened due to lack of resources. |
EFI_STATUS EFIAPI UdfRead | ( | IN EFI_FILE_PROTOCOL * | This, |
IN OUT UINTN * | BufferSize, | ||
OUT VOID * | Buffer | ||
) |
Read data from the file.
This | Protocol instance pointer. |
BufferSize | On input size of buffer, on output amount of data in buffer. |
Buffer | The buffer in which data is read. |
EFI_SUCCESS | Data was read. |
EFI_NO_MEDIA | The device has no media. |
EFI_DEVICE_ERROR | The device reported an error. |
EFI_VOLUME_CORRUPTED | The file system structures are corrupted. |
EFI_BUFFER_TO_SMALL | BufferSize is too small. BufferSize contains required size. |
EFI_STATUS EFIAPI UdfSetInfo | ( | IN EFI_FILE_PROTOCOL * | This, |
IN EFI_GUID * | InformationType, | ||
IN UINTN | BufferSize, | ||
IN VOID * | Buffer | ||
) |
Set information about a file.
This | Protocol instance pointer. |
InformationType | Type of information in Buffer. |
BufferSize | Size of buffer. |
Buffer | The data to write. |
EFI_SUCCESS | Data was set. |
EFI_UNSUPPORTED | InformationType is not supported. |
EFI_NO_MEDIA | The device has no media. |
EFI_DEVICE_ERROR | The device reported an error. |
EFI_VOLUME_CORRUPTED | The file system structures are corrupted. |
EFI_WRITE_PROTECTED | The device is write protected. |
EFI_ACCESS_DENIED | The file was open for read only. |
EFI_STATUS EFIAPI UdfSetPosition | ( | IN EFI_FILE_PROTOCOL * | This, |
IN UINT64 | Position | ||
) |
EFI_STATUS EFIAPI UdfWrite | ( | IN EFI_FILE_PROTOCOL * | This, |
IN OUT UINTN * | BufferSize, | ||
IN VOID * | Buffer | ||
) |
Write data to a file.
This | Protocol instance pointer. |
BufferSize | On input size of buffer, on output amount of data in buffer. |
Buffer | The buffer in which data to write. |
EFI_SUCCESS | Data was written. |
EFI_UNSUPPORTED | Writes to Open directory are not supported. |
EFI_NO_MEDIA | The device has no media. |
EFI_DEVICE_ERROR | The device reported an error. |
EFI_DEVICE_ERROR | An attempt was made to write to a deleted file. |
EFI_VOLUME_CORRUPTED | The file system structures are corrupted. |
EFI_WRITE_PROTECTED | The device is write protected. |
EFI_ACCESS_DENIED | The file was open for read only. |
EFI_VOLUME_FULL | The volume is full. |
EFI_FILE_PROTOCOL gUdfFileIoOps |