STRUCT NAND_ECC_REQ_TWEAK_CTX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to the Kernel API Manual ✨ β€” this page is all about struct nand_ecc_req_tweak_ctx, and its whole personality is: help for automatically tweaking requests. that's it, that's the vibe πŸŽ€


🌸 SYNOPSIS 🌸

struct nand_ecc_req_tweak_ctx {
    struct nand_page_io_req orig_req;
    struct nand_device *nand;
    unsigned int page_buffer_size;
    unsigned int oob_buffer_size;
    void *spare_databuf;
    void *spare_oobbuf;
    bool bounce_data;
    bool bounce_oob;
 };

πŸŽ€ MEMBERS πŸŽ€

  • orig_req β€” a pointer to the original IO request πŸ‘‘ like the before picture of the whole glow-up
  • nand β€” the related NAND device, so we can peek at its memory organization πŸ¦‹ iykyk, you need the layout deets
  • page_buffer_size β€” the real size of the page buffer to use. plot twist: the user can set this before the tweaking mechanism initialization 😌
  • oob_buffer_size β€” the real size of the OOB buffer to use. and yes, same deal β€” settable by the user before the tweaking mechanism initialization πŸ’…
  • spare_databuf β€” the data bounce buffer πŸ€ literally its job is to bounce
  • spare_oobbuf β€” the OOB bounce buffer, same energy, different buffer 🫢
  • bounce_data β€” flag saying a data bounce buffer is in use βœ…
  • bounce_oob β€” flag saying an OOB bounce buffer is in use βœ…

πŸ¦‹ SEE ALSO πŸ¦‹

bestie there is so much lore here, go read these next, no cap πŸ“š


okay that's the whole page, you ate that πŸ’… this lil baddie lives in ./include/linux/mtd, dropped October 2026 (yes she's from the future, main character energy fr fr) β€” mwah, go read the source bestie, ily πŸ§šπŸ’œ

πŸ“¦ where this page comes from