mtd_to_spinand(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so hi bestie, welcome to mtd_to_spinand(9) from the Kernel API Manual πŸ’… this page is literally about mtd_to_spinand β€” get the SPI NAND device attached to an MTD instance. no cap, that’s the whole vibe ✨

✨ SYNOPSIS ✨

struct spinand_device * mtd_to_spinand (struct mtd_info *mtd );

πŸŽ€ ARGUMENTS πŸŽ€

  • mtd β€” your MTD instance 🫢 yes bestie, that’s the one being passed in.

πŸ”₯ RETURN πŸ”₯

the SPI NAND device attached to mtd πŸ’– that’s it, that’s the tea ✨

πŸ¦‹ SEE ALSO πŸ¦‹

go peek at the kernel file ./include/linux/mtd/spinand.h and these iconic besties:

  • struct spinand_id(9)
  • struct spinand_devid(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)
  • spinand_to_mtd(9)
  • nand_to_spinand(9)
  • spinand_to_nand(9)
  • spinand_set_of_node(9)

and that’s the whole page, bestie 🫢 source/version is ./include/linux/mtd, dated October 2026, and the main character is mtd_to_spinand(9) 🌈✨

πŸ“¦ where this page comes from