spi_nor_spi...k_read_pp_op(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… spi_nor_spi...k_read_pp_op(9) β€” Kernel API Manual, but make it make sense

okay so bestie, we're deep in the kernel today β€” this one lives in the Kernel API Manual, section 9, and the headline is spi_nor_spimem_check_read_pp_op. Say that five times fast, I dare you 😭


✨ NAME ✨

spi_nor_spimem_check_read_pp_op β€” the little vibe check that asks "hey, does this controller actually support this read operation or page program operation?" πŸ’–

Basically it's the bouncer at the club door, but for SPI NOR flash ops. If your controller can't handle it, it does not get in. Periodt. 🚫


πŸŽ€ SYNOPSIS πŸŽ€

int spi_nor_spimem_check_read_pp_op (struct spi_nor *nor , struct
spi_mem_op *op );

look at her. iconic signature, no notes. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • nor β€” pointer to a 'struct spi_nor' 🫢 this is the NOR flash buddy we're checking up on. She's the main character of this whole story.
  • op β€” pointer to the op template that's getting checked ✨ yes bestie, it's a template, meaning it's the shape of the operation you're asking about, and we're gonna see if the hardware is feeling it.

🌸 DESCRIPTION 🌸

so here's the tea β˜• β€” this function returns 0 if the operation is supported, and -EOPNOTSUPP otherwise. that's it. that's the whole function. no cap.

like genuinely it's giving "simple but essential" energy πŸ”₯ zero means slay, -EOPNOTSUPP means the controller said "not me, not today" πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘

the full friend group, all sixty-two of them, and yes we're listing every single one because nobody gets left out in this house πŸ πŸ’–

iykyk β€” there's a whole kernel file behind this one: ./drivers/mtd/spi-nor/core.c πŸ” that's where the magic actually happens, go read it if you're nosy like me πŸ™ˆ

and that's the page, bestie!! πŸ§šβ€β™€οΈ this lil drop came out of ./drivers/mtd/spi-nor in October 2026, filed under section 9 of the Kernel API Manual β€” spi_nor_spi...k_read_pp_op(9), always and forever πŸ’œβœ¨ go check your hwcaps, ily, bye πŸŽ€

πŸ“¦ where this page comes from