zpa2326_probe(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– zpa2326_probe(9) πŸ’–

okay so welcome to the Kernel API Manual, bestie 🫢 this is the page for zpa2326_probe(9), and it's highkey giving main character energy for a function with such a chill little job. no cap.

🌸 NAME 🌸

zpa2326_probe β€” instantiate and register the core ZPA2326 IIO device. that's the assignment: make the device, register the device, periodt πŸ’…

✨ SYNOPSIS ✨

here's the signature, copied exactly so you don't have to squint at the source, iykyk:

int zpa2326_probe (struct device *parent , const char *name , int irq ,
       unsigned int hwid , struct regmap *regmap );

copy-paste ready, the way it ate and left no crumbs πŸ’…

πŸ¦‹ ARGUMENTS πŸ¦‹

  • parent β€” the hardware sampling device that the created IIO device will be a child of. yes, the new IIO device is the child here β€” family tree but make it hardware 🌈
  • name β€” an arbitrary name to identify the device. literally call it whatever, it's just the identifier πŸŽ€
  • irq β€” the interrupt line; it's negative if there is none. so if there's no interrupt line, expect a negative value, fr fr πŸ¦‹
  • hwid β€” the expected device hardware id. this is the hardware id you're expecting, no surprises πŸ‘€
  • regmap β€” the registers map used to abstract underlying bus accesses. it's the abstraction layer for the bus stuff, iconic 🧚

πŸ”₯ RETURN πŸ”₯

0 when successful β€” slay ✨ otherwise you get a negative error code. that's the whole vibe check, bestie 😭

🌟 SEE ALSO 🌟

go read those too if you're being thorough, which you are πŸ’œ


xoxo πŸ’‹ source/version: ./drivers/iio/pressure; date: October 2026. that's the cute lil sign-off, mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from