spi_nor_parse_4bait(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ spi_nor_parse_4bait(9) β€” Kernel API Manual πŸ¦‹

okay so bestie, welcome to the spi_nor_parse_4bait(9) page from the Kernel API Manual. We're parsing the 4-Byte Address Instruction Table, and honestly? iconic little SFDP moment ✨. No cap, here's the whole rundown.

πŸŽ€ NAME πŸŽ€

spi_nor_parse_4bait β€” parse the 4-Byte Address Instruction Table πŸ’–

✨ SYNOPSIS ✨

int spi_nor_parse_4bait (struct spi_nor *nor , const struct sfdp_parameter_header *param_header );

🫢 ARGUMENTS 🫢

  • nor β€” pointer to a struct spi_nor. That's the struct being handed in, periodt.
  • param_header β€” pointer to the struct sfdp_parameter_header describing the 4-Byte Address Instruction Table length and version. It's giving "metadata bestie" πŸŽ€.

πŸ’… RETURN πŸ’…

0 on success, -errno otherwise. So yeah: zero is the slay outcome, negative errno is the "oop" outcome 😭.

🌈 SEE ALSO 🌈

Kernel file ./drivers/mtd/spi-nor/sfdp.c and the whole friend group:


mwah πŸ’‹ source/version: ./drivers/mtd/spi-nor, dated October 2026 β€” and that's the spi_nor_parse_4bait(9) page, bestie. go parse that table βœ¨πŸ’…

πŸ“¦ where this page comes from