STRUCT SMEM_FLASH_PENTRY(9)
π 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 achararray sizedSMEM_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 asoffset. keep that consistent and you'll slay.attrβ Flags for this partition π a lilu8doing the most, but respectfully. iykyk.
fr fr βoffsetandlengthare both measured in blocks, andoffset,lengthare__le32whileattris au8. the types are right there in the synopsis, do not improvise π
π SEE ALSO π
- Kernel file
./drivers/mtd/parsers/qcomsmempart.cstructsmem_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
- 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