smi_i2c_probe(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to smi_i2c_probe(9) from the Kernel API Manual πŸ’– this page is short, it’s giving β€œtiny but important,” and we are keeping every single detail. no skips, periodt.

🌸 NAME 🌸

smi_i2c_probe β€” instantiate multiple I2C devices from the inst array. that’s the name, bestie, and it ate.

✨ SYNOPSIS ✨

the signature, verbatim, because we do not play with code:

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

πŸŽ€ ARGUMENTS πŸŽ€

three arguments, three vibe checks:

  • pdev β€” the platform device. lowkey just the platform device, but highkey important.
  • smi β€” internal struct for the Serial multi instantiate driver.
  • inst_array β€” array of instances to probe. the lineup, the roster, the main characters.

πŸ’… DESCRIPTION πŸ’…

okay so here’s the tea: this function returns the number of I2C devices instantiate β€” yes, β€œinstantiate,” that’s the wording, don’t come for me 😭 β€” and it returns Zero if none is found, or a negative error code. that’s it. that’s the description. short and iconic.

πŸ¦‹ SEE ALSO πŸ¦‹

go peep these too, bestie:

  • Kernel file ./drivers/platform/x86/serial-multi-instantiate.c
  • smi_spi_probe(9)

mwah πŸ’‹ sign-off szn: source/version ./drivers/platform/x86, date October 2026, page smi_i2c_probe(9) β€” love u, bye 🫢

πŸ“¦ where this page comes from