winbond_nor_write_ear(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… winbond_nor_write_ear(9)

okay so bestie, welcome to the Kernel API Manual ✨ β€” this one lives in the Linux kernel's MTD SPI-NOR corner and it's literally the glow-up moment for your flash chip's address game. The function is winbond_nor_write_ear, and yes, "ear" is the Extended Address Register, not the thing on the side of your head πŸ’€


✨ NAME ✨

winbond_nor_write_ear β€” Write Extended Address Register. that's it. that's the whole vibe πŸŽ€


🌸 SYNOPSIS 🌸

int winbond_nor_write_ear (struct spi_nor *nor , u8 ear );

she takes two things and returns an int, no cap 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • nor β€” pointer to struct spi_nor. yeah, the big one. the main character of the SPI-NOR universe πŸ‘‘
  • ear β€” value to write to the Extended Address Register. this is the u8 you're shoving into the EAR, so pick it wisely πŸ’…

⭐ RETURN ⭐

0 on success, -errno otherwise. so like, zero is the slay, and anything negative is the kernel telling you "not today bestie" 😭


🌈 SEE ALSO 🌈

both of those are fr fr worth a read if you're deep in the Winbond lore, iykyk 🧚


lowkey important: this page is part of the Kernel API Manual, so if something looks off, it's the kernel's vibe, not mine πŸ™ˆ

mwah πŸ’‹ that's the whole page, and it's giving documentation excellence. this gem comes from ./drivers/mtd/spi-nor and the version/date situation is October 2026 β€” so yeah, she's from the future and she's iconic for it β­πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from