cypress_nor_get_page_size(9)
β¨ cypress_nor_get_page_size(9) β¨
okay so this is a page from the Kernel API Manual, and honestly? it's giving "tiny function, big responsibilities" π let me walk you through it bestie, no cap.
πΈ NAME πΈ
cypress_nor_get_page_size β literally just "Get flash page size configuration." π that's the whole vibe.
π¦ SYNOPSIS π¦
int cypress_nor_get_page_size (struct spi_nor *nor );
like, it takes one thing and gives you back an int, periodt.
π ARGUMENTS π
norβ a pointer to astruct spi_norπ«Ά that's it, that's the whole argument list, she's low-maintenance.
β¨ DESCRIPTION β¨
okay so here's the tea β β the BFPT table advertises a 512B or 256B page size depending on the part, but plot twist: the page size is actually configurable (with the default being 256B). π
so what does this function do? it reads from CFR3V[4] and sets the correct size. that's the whole mission, and she ate. π
π₯ RETURN π₯
0on success π-errnootherwise π
π SEE ALSO π
- Kernel file
./drivers/mtd/spi-nor/spansion.candstruct spansion_nor_params(9) 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_set_addr_mode_nbytes(9)cypress_nor_set_octal_dtr(9)spansion_nor_sr_ready_and_clear(9)
go read those too bestie, iykyk π
that's the whole page!! π§ from ./drivers/mtd/spi-nor, October 2026, Kernel API Manual energy all the way through π mwah, ily, go configure some flash page sizes πβπ
π¦ 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