devm_iio_map_array_register(9)
π devm_iio_map_array_register β kernel API manual, but make it cute π
okay so bestie, welcome to the devm_iio_map_array_register(9) page β yes that's the whole name, it's a mouthful, we don't talk about it π. It's a kernel API manual entry, and it's literally the device-managed glow-up of iio_map_array_register. main character energy only β¨
β¨ NAME β¨
devm_iio_map_array_register β the device-managed version of iio_map_array_register. that's it, that's the vibe π
π¦ SYNOPSIS π¦
int devm_iio_map_array_register (struct device *dev , struct iio_dev
*indio_dev , const struct iio_map *maps );
like, three args, one int coming back at you, no cap π«Ά
πΈ ARGUMENTS πΈ
devβ the device object you're binding the unwinding of this registration to. it's the one holding the leash, basically π§indio_devβ pointer to theiio_devstructure. iconic struct, we love her πmapsβ pointer to an IIO map object that's getting registered to this IIO device. the actual payload, fr fr π
π₯ DESCRIPTION π₯
so here's the tea π β this function will call iio_map_array_register to register an IIO map object, and it also hooks a callback to the iio_map_array_unregister function to handle the de-registration of the IIO map object when the device's refcount goes to zero. automatic cleanup, no manual labour, obsessed πβ¨
like, you register the thing, and devm handles the messy breakup later when the refcount hits zero. it's giving responsible adult behaviour π
π SEE ALSO π
- Kernel file
./include/linux/iio/driver.hβ go read it, iykyk π iio_map_array_register(9)iio_map_array_unregister(9)
ngl bestie, the SEE ALSO section is literally the friend group. the register, the unregister, and the header they all live in. periodt π
and that's the whole page!! π this lil manual lives in ./include/linux/iio, dated October 2026, and it's the devm_iio_map_array_register(9) page β mwah, go forth and register responsibly π«Άππ
π¦ 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