adxl313_core_probe(9)
π NAME π
adxl313_core_probe β probe and setup for adxl313 accelerometer β¨
okay so real talk, bestie, this page lives in the Kernel API Manual (that's the manual name, keep it in your notes π), and it's all about getting the adxl313 accelerometer probed and set up. that's the whole vibe. π
πΈ SYNOPSIS πΈ
int adxl313_core_probe (struct device *dev , struct regmap *regmap ,
const struct adxl313_chip_info *chip_info , int (*setup)(struct device
*, struct regmap *) );
it's giving "returns an int", it's giving "takes four things". slay. π
π¦ ARGUMENTS π¦
four arguments, no more no less, and we're gonna go through every single one because that's the whole point π«Ά
devβ the driver model representation of the device. like, this is the device's whole identity in the driver model. main character energy fr. πregmapβ the register map of the device. this is how you actually talk to the registers, iykyk. πchip_infoβ a structure containing device specific data. that's where the per-chip lore lives. πsetupβ the setup routine to be executed right before the standard device setup. and here's the iconic part: it can also be set toNULLif it's not required. no setup needed? no problem. β¨
β RETURN β
0on success π- negative errno on error cases π
that's it, that's the return contract. zero means we ate, negative means something went sideways. π
π₯ SEE ALSO π₯
- Kernel file
./drivers/iio/accel/adxl313_core.c adxl313_is_act_inact_ac(9)adxl313_fifo_reset(9)
go read those too, bestie, they're literally right there. π§
ngl, this page is short but every line is carrying its weight. don't skip thesetupargument note aboutNULLβ that's the sneaky-but-important detail. π
okay and finally, the cute little sign-off bit: this whole thing comes to you from ./drivers/iio/accel, dated October 2026, and yes β bestie β it is adxl313_core_probe(9) all the way down. π¦π periodt.
π¦ 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