micron_st_nor_read_fsr(9)
π 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 tostruct 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 π
- Kernel file
./drivers/mtd/spi-nor/micron-st.cβ go read the source, bestie, it's right there π«Ά micron_st_nor_clear_fsr(9)micron_st_nor_ready(9)
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,0or-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
- 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