efi_partition(9)
π efi_partition(9) β scan for GPT partitions π
Welcome to the efi_partition(9) page from the Kernel API Manual, bestie π
β¨ This one is all about scanning for GPT partitions, and it is lowkey iconic.
πΈ NAME πΈ
efi_partition β scan for GPT partitions π¦
β¨ SYNOPSIS β¨
int efi_partition (struct parsed_partitions *state );
π ARGUMENTS π
stateβ disk parsed partitions π«Ά
π¦ DESCRIPTION π¦
Okay so here's the tea: this gets called from check.c. If the disk contains GPT partitions, it sets up partition entries in the kernel. Periodt π
If the first block on the disk is a legacy MBR, it will get handled by msdos_partition. If it's a Protective MBR, we'll handle it here. No cap.
We do not create a Linux partition for GPT, but only for the actual data partitions. That part is important, bestie π
π RETURN π
-1β if unable to read the partition table π0β if this isn't our partition table π1β if successful π
π₯ SEE ALSO π₯
Kernel file: ./block/partitions/efi.c π
Also go peek at these icon friends:
efi_crc32(9)last_lba(9)is_pmbr_valid(9)read_lba(9)alloc_read_gpt_entries(9)alloc_read_gpt_header(9)is_gpt_valid(9)is_pte_valid(9)compare_gpts(9)find_valid_gpt(9)utf16_le_to_7bit(9)
xoxo from efi_partition(9) π β source/version ./block/partitions, date October 2026 π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms