STRUCT MTD_PART(9)
π struct mtd_part(9) π
okay bestie, welcome to the struct mtd_part(9) manual page β this is from the Kernel API Manual and it's literally all about the MTD partition specific fields π
β¨ NAME β¨
struct mtd_part β the MTD partition specific fields, periodt π«Ά
πΈ SYNOPSIS πΈ
struct mtd_part {
struct list_head node;
u64 offset;
u64 size;
u32 flags;
};
that's the whole vibe, no cap β¨
π¦ Members π¦
nodeβ this is the list node that gets used to add an MTD partition to the parent partition list π§ it's giving "I know my place in the linked list" energyoffsetβ the offset of the partition, relative to the parent offset πsizeβ the partition size. ngl, this should be equal tomtd->sizeunlessMTD_SLC_ON_MLC_EMULATIONis set πflagsβ the original flags, like, before the mtdpart logic decided to tweak them based on flash constraints (things like eraseblock/pagesize alignment) π so yeah, these are the pre-tweak ones
π Description π
so this struct is embedded in mtd_info and it contains all the partition-specific properties/fields π
lowkey iconic, fr fr π
π SEE ALSO π
- Kernel file
./include/linux/mtd/mtd.h struct mtd_oob_ops(9)struct mtd_oob_region(9)struct mtd_pairing_info(9)struct mtd_pairing_scheme(9)struct mtd_debug_info(9)struct mtd_master(9)mtd_align_erase_req(9)
like, go read those too, iykyk π₯
and that's a wrap bestie!! this page lives in ./include/linux/mtd and it's dated October 2026 β mwah, go slay your partition definitions ππβ
π¦ 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