winbond_nor_select_die(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– winbond_nor_select_die β€” the "pick your die" era πŸ’–

Okay bestie, this is a kernel API manual page for winbond_nor_select_die(9) β€” yes, manual section 9, the kernel API one. Come sit with me, we're gonna get into it. ✨


🌸 SYNOPSIS 🌸

int winbond_nor_select_die(struct spi_nor *nor, u8 die);

That's the whole signature, no cap. Let's unpack the two little guys it takes.


πŸŽ€ ARGUMENTS πŸŽ€

  • nor β€” pointer to struct spi_nor. This is your main character struct, the one holding all the SPI NOR situation. 🫢
  • die β€” the die to set active. It's a u8, and it's literally the whole point of the function. Slay.

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the vibe: certain Winbond chips feature more than a single die. Like, more than one die. Multiple. A whole squad of dies. πŸ‘‘

And mostly? This is hidden to the user. You don't see it, you don't touch it, it's giving invisible backstage crew. But the plot twist is that some chips may experience time deviation when modifying the status bits between dies β€” and in some corner cases, that may produce problematic races. Races!! On your kernel!! Literally not the fun kind. 😭

So being able to explicitly select a die to check its state in this case may be useful. That's it. That's the function. You pick the die, you vibe check it, you move on. Iconic behaviour, honestly.

Lowkey important: that "problematic races" thing is a real caveat, not a cute metaphor. Time deviation between dies while poking status bits is the whole reason this exists. Respect the corner cases fr fr.

⭐ RETURN ⭐

  • 0 on success β€” the good ending. πŸ’…
  • -errno otherwise β€” the classic kernel bad-ending, returned the proper errno way.

πŸ”₯ SEE ALSO πŸ”₯


And that's the page! Header said winbond_nor_select_die(9) / Kernel API Manual β€” folded in up top, as promised. The footer said it lives under ./drivers/mtd/spi-nor, dated October 2026, and it's the winbond_nor_select_die(9) page all the way through. Catch you in the kernel, bestie β€” go select a die responsibly πŸ§šβ€β™€οΈπŸŒΈβœ¨

πŸ“¦ where this page comes from