STRUCT SPINAND_DEVID(9)
β¨ struct spinand_devid(9) β¨
okay so bestie, welcome to the struct spinand_devid(9) page π
this is the Kernel API Manual moment where we learn how an SPI NAND chip says "hi, it's me" β like a little name tag but for silicon π
πΈ NAME πΈ
struct spinand_devid β the SPI NAND device id structure. literally the vibe check of "which chip am I even talking to" π¦
β SYNOPSIS β
struct spinand_devid {
const u8 *id;
const u8 len;
const enum spinand_readid_method method;
};
no cap, that's the whole thing. three members, zero drama β¨
π§ Members π§
idβ the device id of the current chip π this is the actual fingerprint, bestie.lenβ how many bytes live in the device id. it's aconst u8, so like, it's not changing its mind πmethodβ the method used to read the chip id. there are 3 possible variants, and yes we're listing all of them because i would never do you like that:SPINAND_READID_METHOD_OPCODE: the chip id is returned immediately after theread_idopcode π₯SPINAND_READID_METHOD_OPCODE_ADDR: the chip id is returned after theread_idopcode + a 1-byte address πSPINAND_READID_METHOD_OPCODE_DUMMY: the chip id is returned after theread_idopcode + 1 dummy byte π (yes, a whole byte of nothing. it's giving filler episode but it's load-bearing.)
π¦ SEE ALSO π¦
the whole friend group, fr fr β kernel file ./include/linux/mtd/spinand.h plus:
struct spinand_id(9), struct spinand_manufacturer(9), struct spinand_op_variants(9), struct spinand_ondie_ecc_conf(9), struct spinand_otp_layout(9), struct spinand_fact_otp_ops(9), struct spinand_user_otp_ops(9), struct spinand_fact_otp(9), struct spinand_user_otp(9), enum spinand_bus_interface(9), struct spinand_info(9), struct spinand_mem_ops(9), struct spinand_device(9), mtd_to_spinand(9), spinand_to_mtd(9), nand_to_spinand(9), spinand_to_nand(9), spinand_set_of_node(9)
go read them too, i'm not gatekeeping anything π
and that's the page!! mwah π«Ά source is ./include/linux/mtd, dated October 2026 β catch you in the next struct spinand_devid(9), slay ππ
π¦ 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