Overview   API Reference  

gpt Struct Reference

GUID partition table (GPT) stored in disk sector 1+/last-. More...

#include <gpt.hpp>

Inheritance diagram for gpt:

Inheritance graph
[legend]
Collaboration diagram for gpt:

Collaboration graph
[legend]

List of all members.

Public Member Functions

struct __packed (header_fields)
 GUID partition table header defined fields.
struct __packed (header)
 GUID partition table header stored in sector 1/last.
 static_assert (sizeof(header)==HEADER_SIZE,"wrong header size")
 static_assert (sizeof(header)<=512,"header size must be smaller than or equal to a sector")
 static_assert ((512%sizeof(header))==0,"wrong header size")
struct __packed (entry)
 GUID partition table entry stored in the sectors following the header.
 static_assert ((512%sizeof(entry))==0,"wrong entry size")

Static Public Attributes

static const uint64_t SIGNATURE = 0x5452415020494645ull
static const uint32_t REVISION = 0x00010000ul
static const uint16_t HEADER_SIZE = 128


Detailed Description

GUID partition table (GPT) stored in disk sector 1+/last-.

Member Function Documentation

struct gpt::__packed ( header_fields   )  [inline, read]

GUID partition table header defined fields.

< GPT signature to signify a valid GPT.

< EFI specification revision.

< GPT header size (usually 128).

< GPT header CRC32 checksum.

< GPT reserved/undefined word.

< This GPT header's sector number.

< Alternate GPT header's sector number.

< First usable sector on disk.

< Last usable sector on disk.

< This disk's globally unique ID.

< Sector containing the first partition entry.

< Number of partition table entries.

< A partition table entry's size.

< Partition table CRC32 checksum.

struct gpt::__packed ( header   )  [inline, read]

GUID partition table header stored in sector 1/last.

Filler to pad & align the data structure

Default constructor for array construction. All attributes are set to zero.

Initializing constructor. All missing attributes are set to zero.

struct gpt::__packed ( entry   )  [inline, read]

GUID partition table entry stored in the sectors following the header.

< Partition type globally unique ID.

< Partition globally unique ID.

< Partition start in LBA addressing.

< Partition end in LBA addressing.

< Partition attributes.

Partition name. 36 unicode (wide) characters.

Default constructor for array construction. All attributes are set to zero.

Initializing constructor. All missing attributes are set to zero.

References efi::is_null_guid().


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

L4vmm Reference Manual, written by Mario Schwalbe  © 2006-2008