alloc_read_gpt_entries(9)
π alloc_read_gpt_entries(9) π
okay so bestie, this page is from the Kernel API Manual, and itβs giving βpartition table girlieβ energy. The whole vibe: you want GPT entries read from disk, and this function is the main character who handles it. letβs go π
πΈ NAME πΈ
alloc_read_gpt_entries β reads partition entries from disk. periodt.
β¨ SYNOPSIS β¨
gpt_entry * alloc_read_gpt_entries (struct parsed_partitions *state , gpt_header *gpt );
π ARGUMENTS π
stateβ disk parsed partitionsgptβ GPT header
π DESCRIPTION π
On success, this returns ptes. On error, it gives you NULL β sad but true π. It allocates space for PTEs based on information found in gpt.
π¦ NOTES π¦
π remember to free pte when youβre done! no cap, do not ghost your memory.
π SEE ALSO π
go read these next, iykyk:
- Kernel file
./block/partitions/efi.c efi_crc32(9)last_lba(9)is_pmbr_valid(9)read_lba(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)efi_partition(9)
xoxo, your source/version is ./block/partitions and the date on this baby is October 2026 β stay slaying bestie π«Άπ
π¦ 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