STRUCT NAND_MANUFACTURER_OPS(9)
β¨ struct nand_manufacturer_ops(9) β¨
okay so bestie, welcome to the Kernel API Manual β this one's all about struct nand_manufacturer_ops, aka the NAND Manufacturer operations π
the vibe is: this is the little struct where a NAND vendor drops their own custom hooks so the core code can call into vendor-specific magic. iykyk π§
πΈ NAME πΈ
struct nand_manufacturer_ops β literally the NAND Manufacturer operations, no cap π«Ά
π SYNOPSIS π
here's the whole struct, copied exactly, don't come for me:
struct nand_manufacturer_ops {
void (*detect)(struct nand_chip *chip);
int (*init)(struct nand_chip *chip);
void (*cleanup)(struct nand_chip *chip);
void (*fixup_onfi_param_page)(struct nand_chip *chip, struct
nand_onfi_params *p);
};
heads up β¨ thefixup_onfi_param_pageline wraps in the original β the second line starts withnand_onfi_params *p);and the closing brace sits at one leading space. keeping it exactly as it is, bestie π
π¦ MEMBERS π¦
detectβ this is the one that sniffs out the NAND memory organization and capabilities π it's giving detective main character energy, fr fr.initβ sets up all the vendor specific fields (like the->read_retryimplementation) if there are any π so like, if any β sometimes there just aren't, and that's fine.cleanupβ okay so the->initfunction may have allocated resources, and->cleanupis literally here so vendor specific code can release those resources π cleanup crew, iconic.fixup_onfi_param_pageβ applies vendor specific fixups to the ONFI parameter page β¨ and the important part: this gets called after the checksum is verified. so the checksum happens first, then the fixups β don't flip that, bestie π
π SEE ALSO π
- Kernel file
./drivers/mtd/nand/raw/internals.hπ struct nand_manufacturer_desc(9)β go read that one next, it's the sibling π«
and that's the whole page, bestie, you ate that π β¨
π cute little sign-off: this one lives in./drivers/mtd/nand/raw, dated October 2026, and the header up top isstruct nand_...facturer_ops(9)π«Ά go forth and detect some NAND π
π¦ 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