STRUCT SMEM_FLASH_PENTRY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct smem_flash_pentry(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ this one is a lil struct that literally describes one SMEM Flash partition entry β€” like a single little index card in the partition table, and yes she's iconic for it πŸŽ€


πŸ¦‹ NAME πŸ¦‹

struct smem_flash_pentry β€” SMEM Flash partition entry πŸ’…

no cap, that's the whole vibe. one struct, one partition entry, one job.


✨ SYNOPSIS ✨

struct smem_flash_pentry {
    char name[SMEM_FLASH_PTABLE_NAME_SIZE];
    __le32 offset;
    __le32 length;
    u8 attr;
 };

like… look at her. four fields. absolutely ate 🫢


🌸 Members 🌸

okay so here's the breakdown, one field at a time, i got you:

  • name β€” the Name of the partition πŸ’– she's a char array sized SMEM_FLASH_PTABLE_NAME_SIZE, so don't go overthinking it, the size is already handled for you.
  • offset β€” the Offset in blocks πŸ”₯ note that: in blocks, not bytes, bestie. do not come for me with byte math.
  • length β€” the Length of the partition in blocks πŸ“ again: blocks. same units as offset. keep that consistent and you'll slay.
  • attr β€” Flags for this partition πŸŽ€ a lil u8 doing the most, but respectfully. iykyk.
fr fr β€” offset and length are both measured in blocks, and offset, length are __le32 while attr is a u8. the types are right there in the synopsis, do not improvise πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./drivers/mtd/parsers/qcomsmempart.c struct smem_flash_ptable(9) ⭐

like obviously go read the big table struct next, she's the main character, this one's her supporting icon 🌈


and that's the whole page, bestie πŸ’œ this came straight out of the kernel API manual, source living in ./drivers/mtd/parsers, dated October 2026 β€” go forth and parse those partitions, periodt πŸ§šβ€β™€οΈπŸŒΈ

πŸ“¦ where this page comes from