STRUCT BCH_GEOMETRY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct bch_geometry(9) πŸ’…

okay bestie, welcome to the Kernel API Manual entry for struct bch_geometry β€” literally the BCH geometry description, and it's giving kernel-struct realness. πŸ¦‹βœ¨


✨ NAME ✨

struct bch_geometry β€” BCH geometry description. periodt. πŸ’–


🌸 SYNOPSIS 🌸

struct bch_geometry {
    unsigned int  gf_len;
    unsigned int  ecc_strength;
    unsigned int  page_size;
    unsigned int  metadata_size;
    unsigned int  ecc0_chunk_size;
    unsigned int  eccn_chunk_size;
    unsigned int  ecc_chunk_count;
    unsigned int  payload_size;
    unsigned int  auxiliary_size;
    unsigned int  auxiliary_status_offset;
    unsigned int  block_mark_byte_offset;
    unsigned int  block_mark_bit_offset;
    unsigned int  ecc_for_meta;
};

πŸŽ€ Members πŸŽ€

okay so here's the full cast, no skips, no cap:

  • gf_len β€” the length of Galois Field. (e.g., 13 or 14) 🌈
  • ecc_strength β€” a number that describes the strength of the ECC algorithm. πŸ’ͺ
  • page_size β€” the size, in bytes, of a physical page, including both data and OOB. πŸ“„
  • metadata_size β€” the size, in bytes, of the metadata. 🏷️
  • ecc0_chunk_size β€” the size, in bytes, of a first ECC chunk. πŸ₯‡
  • eccn_chunk_size β€” the size, in bytes, of a single ECC chunk after the first chunk in the page. 🧩
  • ecc_chunk_count β€” the number of ECC chunks in the page. πŸ”’
  • payload_size β€” the size, in bytes, of the payload buffer. πŸ“¦
  • auxiliary_size β€” the size, in bytes, of the auxiliary buffer. 🧺
  • auxiliary_status_offset β€” the offset into the auxiliary buffer at which the ECC status appears. πŸ“
  • block_mark_byte_offset β€” the byte offset in the ECC-based page view at which the underlying physical block mark appears. πŸ”–
  • block_mark_bit_offset β€” the bit offset into the ECC-based page view at which the underlying physical block mark appears. 🎯
  • ecc_for_meta β€” the flag to indicate if there is a dedicate ecc for meta. 🚩

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.h
  • struct boot_rom_geometry(9)
  • struct gpmi_nfc_hardware_timing(9)

iykyk, go read those next. πŸ‘‘πŸ’œ


mwah πŸ’‹ β€” this page came from ./drivers/mtd/nand/raw/gpmi-nand, dated October 2026, and that's the cute little sign-off, bestie. πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from