|
miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
|
#include <miniOS/types.h>

Go to the source code of this file.
Classes | |
| struct | gpt_guid_t |
| struct | __attribute__ |
| struct | gpt_partition_t |
Macros | |
| #define | GPT_HEADER_LBA 1 |
| #define | GPT_REVISION 0x00010000U |
| #define | GPT_MAX_PARTITIONS 128 |
Functions | |
| int | gpt_parse (gpt_partition_t *partitions, int max_count, int *count) |
| #define GPT_HEADER_LBA 1 |
| #define GPT_MAX_PARTITIONS 128 |
| #define GPT_REVISION 0x00010000U |
| int gpt_parse | ( | gpt_partition_t * | partitions, |
| int | max_count, | ||
| int * | count ) |
gpt_parse() - Read and validate the GPT from the boot disk. @partitions: Output array for parsed partitions. @max_count: Maximum number of entries @partitions can hold. @count: Output: number of valid (non-empty) partition entries found.
Reads LBA 1 (GPT header), validates the "EFI PART" signature and revision, then iterates the partition entry table (default: LBA 2-33) and populates @partitions with all non-empty entries, up to @max_count.

