winbond_nor...te_addr_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… winbond_nor_set_4byte_addr_mode(9) πŸ’…

okay so this is a page straight out of the Kernel API Manual β€” yes, the real one, the Kernel API Manual, bestie, we're in the big leagues now πŸŽ€ β€” and it's all about flipping a Winbond flash chip into (or out of) 4-byte address mode. iconic behavior honestly.


✨ NAME ✨

winbond_nor_set_4byte_addr_mode β€” Set 4-byte address mode for Winbond flashes.

like, that's the whole vibe. it sets the 4-byte address mode. for Winbond flashes specifically. no cap. πŸ¦‹


🌸 SYNOPSIS 🌸

int winbond_nor_set_4byte_addr_mode (struct spi_nor *nor , bool enable );

she takes two things and returns an int. that's her whole personality πŸ’…


🫢 ARGUMENTS 🫢

  • nor β€” pointer to struct spi_nor. literally just a pointer to your struct spi_nor, bestie, nothing spooky going on here ✨
  • enable β€” true to enter the 4-byte address mode, false to exit the 4-byte address mode. so like... true = going in, false = getting out. it's giving ✨doors✨ πŸ”₯

🌈 RETURN 🌈

  • 0 on success πŸŽ‰ slay!
  • -errno otherwise 😭 i.e. you get a negative errno back and you should probably pay attention to it, fr fr

πŸ‘‘ SEE ALSO πŸ‘‘

like obviously go read those too, iykyk 🧚


ngl if you're poking at Winbond flash address modes, read the actual source file before you go touching things β€” she's a kernel file, not a vibe, and the details live over there 🫢

okay that's the whole page, mwah πŸ’– this gem is from ./drivers/mtd/spi-nor, dated October 2026, and honestly? she ate. periodt. πŸ“πŸŒΈβ­

πŸ“¦ where this page comes from