devm_iio_hw_consumer_alloc(9)
π devm_iio_hw_consumer_alloc(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β yes we're reading kernel docs together, this is our bonding activity now, no takebacks π«Ά
πΈ NAME πΈ
devm_iio_hw_consumer_alloc β it's the resource-managed version of iio_hw_consumer_alloc(), and yes that mouthful of a name is literally the whole vibe π
β¨ SYNOPSIS β¨
struct iio_hw_consumer * devm_iio_hw_consumer_alloc (struct device *dev
);
like look at her go, so iconic, so struct iio_hw_consumer * π
π¦ ARGUMENTS π¦
devβ pointer to the consumer device. that's the one, that's the whole argument, she's lowkey easy π
π₯ DESCRIPTION π₯
So this is the managed iio_hw_consumer_alloc, bestie. The iio_hw_consumer you get from this function is automatically freed on driver detach β like devm said "don't worry about it, I gotchu" and honestly? main character energy π
And what does she return, you ask π β a pointer to the allocated iio_hw_consumer on success, and NULL on failure. fr fr, that's it. no cap. β¨
π SEE ALSO π
okay so like, the kernel file is ./drivers/iio/buffer/industrialio-hw-consumer.c and she's got a whole friend group, go say hi to all of them π
struct iio_hw_consumer(9)iio_hw_consumer_alloc(9)iio_hw_consumer_free(9)iio_hw_consumer_enable(9)iio_hw_consumer_disable(9)
and that's the whole page, mwah π sign-off time: this lil gem comes from ./drivers/iio/buffer, dated October 2026, and it's titled devm_iio_hw_consumer_alloc(9) because obviously π
go forth and allocate responsibly, bestie ππ
π¦ 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