zpa2326_probe(9)
π 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 π
- Kernel file
./drivers/iio/pressure/zpa2326.h zpa2326_remove(9)
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
- 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