STRUCT MTD_PART(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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" energy
  • offset β€” the offset of the partition, relative to the parent offset πŸ‘‘
  • size β€” the partition size. ngl, this should be equal to mtd->size unless MTD_SLC_ON_MLC_EMULATION is 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