spinand_to_nand(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… spinand_to_nand(9) πŸ’…

okay bestie, so this one lives in the Kernel API Manual (yes, the Kernel API Manual, we're in the big leagues now ✨) and it's literally the tiniest lil function with main character energy. no cap.


🌸 NAME 🌸

spinand_to_nand β€” get the NAND device that's embedded in a SPI NAND object 🫢

like, the NAND device is in there, hiding inside the spinand, and this function is the one that pulls it out. periodt.


✨ SYNOPSIS ✨

struct nand_device * spinand_to_nand (struct spinand_device *spinand );

copy that exactly, bestie, every character. the stars and the space before the closing paren are part of the vibe πŸ’€


πŸŽ€ ARGUMENTS πŸŽ€

  • spinand β€” the SPI NAND device πŸ’– that's the whole argument. one (1) single parameter. we love a low-effort queen.

πŸ”₯ RETURN πŸ”₯

it returns the NAND device embedded in spinand. that's it. that's the return value. struct nand_device *, straight out of the SPI NAND object. no drama, no NULL storytelling, no surprises β€” well, the page doesn't say anything about NULL, so let's not invent lore πŸ™ˆ


πŸ¦‹ SEE ALSO πŸ¦‹

the source of truth lives in the kernel file ./include/linux/mtd/spinand.h β€” and bestie there is a WHOLE friend group in there:

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

notice how nand_to_spinand(9) is right there, doing the reverse 🧚 the way they're mirrors, iykyk πŸ’…


vibe check: one arg, one return, zero flags, zero env vars, zero exit statuses. this manpage is short and she KNOWS it. slay.

sign-off time 🌈 this lil document comes to you from ./include/linux/mtd and it's dated October 2026 β€” so yeah, mark your calendar bestie, future-drop energy β­πŸ‘‘ bye! πŸ’œ

πŸ“¦ where this page comes from