STRUCT DENALI_CHIP(9)
πΈ NAME πΈ
okay so bestie, gather round, because this is struct denali_chip β the per-chip data of Denali NAND π
and yes, this is a page from the Kernel API Manual (section 9, kernel API things, iykyk) π«Ά
β¨ SYNOPSIS β¨
like, here's literally the whole shape of it, no cap:
struct denali_chip {
struct nand_chip chip;
struct list_head node;
unsigned int nsels;
struct denali_chip_sel sels[];
};
she's a struct, she's got a flexible array member at the end (sels[]), she's iconic π
π Members π
okay so let's do a vibe check on every single field, one by one, because we do NOT skip members on this page π
chipβ the base NAND chip structure π± lowkey the main character of this struct tbhnodeβ a node to be used to associate this chip with the controller π it's giving "put me in the list, bestie"nselsβ the number of CS lines of this chip β¨ anunsigned int, so, you know, a countselsβ the array of per-cs data π (that's "per-chip-select" data, in case you were wondering) and note it's declaredsels[], so it's the flexible-array-member situation at the end of the struct
little reminder:nselssays how many CS lines there are, andsels[]is where the per-cs data actually lives β they're a package deal, fr fr
π SEE ALSO π
go read these next, bestie, they're all connected:
- Kernel file
./drivers/mtd/nand/raw/denali.hπ struct denali_chip_sel(9)β the per-cs data situation πstruct denali_controller(9)β the controller thatnodelinks you up with π
and that's the whole page!! π this one lives in ./drivers/mtd/nand/raw, and it's dated October 2026 β so yeah, go off, read your Denali NAND structs, and remember: every CS line deserves its own data π¦β¨π
π¦ 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