smi_spi_probe(9)
β¨ 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
- 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