compare_gpts(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so this is compare_gpts(9) from the Kernel API Manual, and its whole mission is to search the disk for valid GPT headers and PTEs. that’s the assignment, bestie πŸ’…βœ¨


✨ SYNOPSIS ✨

void compare_gpts (gpt_header *pgpt , gpt_header *agpt , u64 lastlba );

πŸŽ€ ARGUMENTS πŸŽ€

  • pgpt β€” the primary GPT header. main character energy πŸ‘‘
  • agpt β€” the alternate GPT header. the backup bestie 🫢
  • lastlba β€” the last LBA number. literally exactly that, no cap πŸ’–

πŸ’– DESCRIPTION πŸ’–

Returns nothing. like, actually nothing β€” void is giving minimalist icon behavior 😌✨

It sanity checks the pgpt and agpt fields and prints warnings on discrepancies. so if those two start disagreeing, this function is gonna call it out πŸ“£πŸ’€


πŸ”₯ SEE ALSO πŸ”₯

the kernel file is ./block/partitions/efi.c, and here’s the whole squad:


πŸ’Œ that’s a wrap! source: ./block/partitions β€’ date: October 2026 β€’ this was compare_gpts(9) β€” byeee bestie, go check those GPT fields 🫢✨

πŸ“¦ where this page comes from