STRUCT BCH_GEOMETRY(9)
π 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.,13or14) π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
- 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