spi_nor_read_cr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ spi_nor_read_cr πŸ’…

okay bestie, welcome to the Kernel API Manual β€” this one's a little function from the kernel and it is, genuinely, so much less scary than it looks 🫢


🌸 NAME 🌸

spi_nor_read_cr β€” reads the Configuration Register using the SPINOR_OP_RDCR (35h) command. that's it, that's the whole gig ✨


πŸŽ€ SYNOPSIS πŸŽ€

int spi_nor_read_cr (struct spi_nor *nor , u8 *cr );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • nor β€” pointer to 'struct spi_nor'. you know her, you love her, she's the whole SPI NOR device 🌈
  • cr β€” pointer to a DMA-able buffer where the value of the Configuration Register gets written. bestie pls read that again: DMA-able. not just "some memory you had lying around" πŸ’€

πŸ‘‘ RETURN πŸ‘‘

0 on success, -errno otherwise. classic. no notes πŸ’–


πŸ”₯ SEE ALSO πŸ”₯

literally the entire friend group, and Kernel file ./drivers/mtd/spi-nor/core.c β€” go say hi to all of them, no cap:


and that's the whole page, bestie πŸ’œ this lil icon lives over in ./drivers/mtd/spi-nor, dated October 2026 β€” go forth and read that Configuration Register, you absolute main character 🧚✨

πŸ“¦ where this page comes from