OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
APPLE_RAM_DISK Struct Reference

#include <AppleRamDisk.h>

Data Fields

UINT64 AllocatedExtents
 
UINT64 PageCount
 
UINT64 TotalSize
 
APPLE_RAM_DISK_EXTENT Extents [APPLE_RAM_DISK_MAX_EXTENTS]
 
UINT64 Reserved
 
UINT8 OwnExtentData []
 

Detailed Description

RAM Disk outermost structure. Allocated in pages with matching MemoryType.

Definition at line 310 of file AppleRamDisk.h.

Field Documentation

◆ AllocatedExtents

UINT64 APPLE_RAM_DISK::AllocatedExtents

Amount of allocated extents in the RAM disk.

Definition at line 314 of file AppleRamDisk.h.

◆ Extents

All allocated and owned extents. First extent is special, as it points to OwnExtentData, and thus has APPLE_RAM_DISK_DEFAULT_SIZE - sizeof (APPLE_RAM_DISK) bytes.

Definition at line 331 of file AppleRamDisk.h.

◆ OwnExtentData

UINT8 APPLE_RAM_DISK::OwnExtentData[]

Own extent data lasting till PageCount end.

Definition at line 339 of file AppleRamDisk.h.

◆ PageCount

UINT64 APPLE_RAM_DISK::PageCount

Amount of allocated pages in APPLE_RAM_DISK structure. Normally EFI_SIZE_TO_PAGES (APPLE_RAM_DISK_DEFAULT_SIZE).

Definition at line 319 of file AppleRamDisk.h.

◆ Reserved

UINT64 APPLE_RAM_DISK::Reserved

Currently reserved or rather unknown. Padding?

Definition at line 335 of file AppleRamDisk.h.

◆ TotalSize

UINT64 APPLE_RAM_DISK::TotalSize

Total disk size allocated from memory map. It is bigger by sizeof(APPLE_RAM_DISK_CONTEXT) than actual requested size, when AllocateMemory = TRUE is specified.

Definition at line 325 of file AppleRamDisk.h.


The documentation for this struct was generated from the following file: