STRUCT SUNXI_NAND_CHIP(9)
π NAME π
struct sunxi_nand_chip β literally the place where all your NAND chip device info lives, bestie β¨
okay so first things first, this whole page is from the Kernel API Manual, and the thing we're stanning today is struct sunxi_nand_chip β it's giving "one struct to hold all the deets about a NAND chip device" and honestly? iconic.
π¦ SYNOPSIS π¦
struct sunxi_nand_chip {
struct list_head node;
struct nand_chip nand;
struct sunxi_nand_hw_ecc ecc;
unsigned long clk_rate;
u32 timing_cfg;
u32 timing_ctl;
u8 *user_data_bytes;
int nsels;
struct sunxi_nand_chip_sel sels[];
};
like, that's the whole vibe right there π
π Members π
nodeβ this is the lil list glue, used to store NAND chips into a list πnandβ the base NAND chip structure, the main character energy of the whole thing πeccβ the ECC controller structure, keeping your data's skin clear β¨clk_rateβ theclk_ratethat this NAND chip needs, no cap β°timing_cfgβ theTIMING_CFGregister value for this NAND chip ποΈtiming_ctlβ theTIMING_CTLregister value for this NAND chip ποΈuser_data_bytesβ an array of user data lengths for all the ECC steps, every single one, we don't skip πnselsβ how many CS lines this NAND chip requires, counted and everything π’selsβ the array of CS lines descriptions, the whole squad π
πΈ SEE ALSO πΈ
- Kernel file
./drivers/mtd/nand/raw/sunxi_nand.cβ go read it, iykyk π struct sunxi_nand_chip_sel(9)struct sunxi_nand_hw_ecc(9)struct sunxi_nfc(9)
and that's the whole page, bestie π«Ά this lil slice of kernel lore comes to you from ./drivers/mtd/nand/raw, dated October 2026 β mwah, go forth and slay your NAND configs πβ¨
π¦ 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