micron_st_nor_read_fsr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… micron_st_nor_read_fsr(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” this one's a lil cutie from the SPI NOR world and honestly it's giving "small function, big responsibility" energy. We're reading a Flag Status Register. That's it. That's the whole vibe. ✨


🌸 NAME 🌸

micron_st_nor_read_fsr β€” reads the Flag Status Register. literally what it says on the tin, no plot twist, no cap πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int micron_st_nor_read_fsr (struct spi_nor *nor , u8 *fsr );

that's the whole signature, bestie. two args, one int coming back at you. slay. πŸ’–


✨ ARGUMENTS ✨

  • nor β€” pointer to struct spi_nor. yeah. it's the SPI NOR thing. you know the one. πŸ‘‘
  • fsr β€” pointer to a DMA-able buffer where the value of the Flag Status Register will be written. and listen, this one's important: it should be at least 2 bytes. not 1. two. don't try to be cute and pass a tiny buffer, ok?? the DMA-able part matters too β€” this is not the moment for a random stack variable, iykyk 😭

πŸ”₯ RETURN πŸ”₯

0 on success, -errno otherwise. so like, zero means we ate, negative means something went sideways and it's handing you an errno to deal with. periodt. πŸ’€


🌈 SEE ALSO 🌈

those last two are the sibling functions btw, the little friend group. read them together for the full lore πŸ“š


ngl this page is short but every detail counts β€” DMA-able buffer, at least 2 bytes, 0 or -errno. no skipping. 🧚

and that's the page! brought to you by the kernel file over in ./drivers/mtd/spi-nor, dated October 2026, under the header micron_st_nor_read_fsr(9) β€” mwah, love that for us πŸ’œπŸ“

πŸ“¦ where this page comes from