spi_nor_set...de_en4b_ex4b(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… spi_nor_set_4byte_addr_mode_en4b_ex4b β€” Kernel API Manual ✨

okay so bestie, today we're looking at spi_nor_set_4byte_addr_mode_en4b_ex4b, and honestly? she's a little icon. this one enters/exits 4-byte address mode using SPINOR_OP_EN4B/SPINOR_OP_EX4B, and she's typically the one Winbond and Macronix reach for. iykyk πŸŽ€


✨ NAME ✨

spi_nor_set_4byte_addr_mode_en4b_ex4b β€” enter/exit 4-byte address mode using SPINOR_OP_EN4B/SPINOR_OP_EX4B. Typically used by Winbond and Macronix. periodt. πŸ’–


🌸 SYNOPSIS 🌸

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

like, that's the whole vibe. no cap. πŸ¦‹


πŸŽ€ ARGUMENTS πŸŽ€

  • nor β€” pointer to struct spi_nor. your main character struct, fr fr. πŸ‘‘
  • enable β€” true to enter the 4-byte address mode, false to exit the 4-byte address mode. yes bestie, it's literally just a light switch: on = in, off = out. πŸ’…

πŸ’œ RETURN πŸ’œ

0 on success, -errno otherwise. so if you see a zero, she ate. if you see a negative errno… that's not giving success, and you should probably go look at what went wrong. 😭 πŸ”₯


🌈 SEE ALSO 🌈

buckle up babes, this list is long β€” it's giving "the whole friend group showed up to the function." every single one, exactly as written:

and yes, the kernel file to go peek at is ./drivers/mtd/spi-nor/core.c β€” that's where the magic lives, bestie. πŸ”₯


ngl this page is short but she's mighty. true in, false out, 0 means slay, -errno means go debug. πŸ§šβ€β™€οΈ

okay that's the whole page!! sourced straight from ./drivers/mtd/spi-nor, dated October 2026, and this manual page goes by spi_nor_set...de_en4b_ex4b(9). love that for us. mwah πŸ’– πŸŽ€ 🌸 🫢

πŸ“¦ where this page comes from