cypress_nor_get_page_size(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 a struct 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 πŸ”₯

  • 0 on success πŸŽ‰
  • -errno otherwise 😭

πŸ‘‘ SEE ALSO πŸ‘‘

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