spinand_to_mtd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 spinand_to_mtd(9) 🌸

okay bestie, welcome to the Kernel API Manual β€” this one is short, sweet, and lowkey iconic. it’s giving β€œone tiny helper function that hands you the MTD device already living inside a SPI NAND device.” no cap. πŸ’–


✨ NAME ✨

spinand_to_mtd β€” get the MTD device embedded in a SPI NAND device πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

struct mtd_info * spinand_to_mtd (struct spinand_device *spinand );

πŸ’… ARGUMENTS πŸ’…

  • spinand β€” SPI NAND device. that’s the whole argument, bestie, she’s simple and she knows it ✨

πŸ‘‘ RETURN πŸ‘‘

the MTD device embedded in spinand. literally that’s it. slay. πŸ’œ


🌈 SEE ALSO 🌈

Kernel file ./include/linux/mtd/spinand.h β€” plus the whole friend group:

  • 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)
  • mtd_to_spinand(9)
  • nand_to_spinand(9)
  • spinand_to_nand(9)
  • spinand_set_of_node(9)

ngl, this page is a little β€œblink and you’ll miss it” moment β€” but every detail is here, fr fr. 🫢

source/version: ./include/linux/mtd β€” October 2026 β€” mwah, drink water, and may your MTD pointer always be valid πŸ’…πŸŽ€πŸ’–

πŸ“¦ where this page comes from