cypress_nor_..._mode_nbytes(9)
β¨ NAME β¨
okay so bestie, this is the cypress_nor_..._mode_nbytes(9) page from the Kernel API Manual, and the function it's hyping up is cypress_nor_set_addr_mode_nbytes β it sets the number of address bytes mode of current address mode. yes, that is the whole assignment. π
πΈ SYNOPSIS πΈ
int cypress_nor_set_addr_mode_nbytes (struct spi_nor *nor );
π ARGUMENTS π
norβ pointer to a'struct spi_nor'. that's the one and only argument, bestie π«Ά
π DESCRIPTION π
so here's the vibe: it determines the current address mode by reading SR1 with different methods, then it queries CFR2V[7] to confirm. detective work, but make it SPI NOR β¨
and if that determination is failed, it doesn't just shrug β it force enters 4-byte address mode. no cap, that's the fallback. π
π₯ RETURN π₯
0β success, slay π-errnoβ otherwise, i.e. the error vibe π
π¦ SEE ALSO π¦
Kernel file reference: ./drivers/mtd/spi-nor/spansion.c β plus struct spansion_nor_params(9) and these iconic little friends:
spansion_nor_clear_sr(9)cypress_nor_sr_ready_and_clear(9)cypress_nor_quad_enable_volatile(9)cypress_nor_determine_addr_mode_by_sr1(9)cypress_nor_get_page_size(9)cypress_nor_set_octal_dtr(9)spansion_nor_sr_ready_and_clear(9)
cute sign-off bestie: source/version is ./drivers/mtd/spi-nor, the date on this page is October 2026, and the whole page is cypress_nor_..._mode_nbytes(9). bye and stay address-moded ππ
π¦ 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