smi_spi_probe(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ smi_spi_probe(9) ✨

okay so bestie, this is a page from the Kernel API Manual β€” yes, the kernel has its own manual, she's iconic like that πŸ’… β€” and today's main character is smi_spi_probe. It's a little function with a big job: spawning a whole squad of SPI devices from an array. periodt. πŸ¦‹


🌸 NAME 🌸

smi_spi_probe β€” instantiate multiple SPI devices from inst array

like literally, not one device, multiple. she's a multi-instantiate girlie and we love that for her πŸŽ€


⭐ SYNOPSIS ⭐

int smi_spi_probe (struct platform_device *pdev , struct smi *smi ,
       const struct smi_instance *inst_array );

three args, one int back. simple synopsis, huge slay πŸ”₯


πŸ’– ARGUMENTS πŸ’–

  • pdev β€” the Platform device 🫢
  • smi β€” the Internal struct for Serial multi instantiate driver πŸ‘‘
  • inst_array β€” the Array of instances to probe 🌈

ngl that's the whole roster. each one does exactly what it says on the label, no secret lore πŸ’€


🧚 DESCRIPTION 🧚

so what does she return? okay bestie, listen:

it returns the number of SPI devices instantiate, or Zero if none is found, or a negative error code. 😭

that's three whole possible outcomes, so do a vibe check on your return value before you assume anything, fr fr ⭐


πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file: ./drivers/platform/x86/serial-multi-instantiate.c β€” go read the source, iykyk πŸ’œ
  • smi_i2c_probe(9) β€” her sibling, the i2c one πŸ¦‹

okay that's the whole page, no cap πŸ’– and before you go β€” this beauty is sourced from ./drivers/platform/x86, dated October 2026, and she's filed under smi_spi_probe(9). mwah, go probe some devices bestie πŸŒΈβœ¨πŸŽ€

πŸ“¦ where this page comes from