spinand_to_nand(9)
π 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
- 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