is_pte_valid(9)
β¨ is_pte_valid(9) β Kernel API Manual β¨
okay so this is the Kernel API Manual page for is_pte_valid(9), and she's short, she's iconic, and she's here to test exactly one PTE for validity. no cap π
π NAME π
is_pte_valid β tests one PTE for validity
π¦ SYNOPSIS π¦
int is_pte_valid (const gpt_entry *pte , const u64 lastlba );
πΈ ARGUMENTS πΈ
pteβ the pte to check. literally the PTE in question, bestie π«Άlastlbaβ last lba of the disk. that's the final LBA, periodt π
π DESCRIPTION π
returns 1 if valid, 0 on error. that's it, that's the whole personality β a tiny little validity check doing its main character thing β¨
π SEE ALSO π
Kernel file ./block/partitions/efi.c and the whole friend group:
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)compare_gpts(9)find_valid_gpt(9)utf16_le_to_7bit(9)efi_partition(9)
and that's the page, bestie π source/version is ./block/partitions, dated October 2026 β mwah, bye π
π¦ 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