This document describes the consumer API for GPIOs https://docs.kernel.org/driver-api/gpio/consumer.html
It talks about device-managed variants of most of the API function like and it device managed-variant .
The parameters and return types of both are the same, but when is it right to use each version?
I've seen used where the dev was registered on the platform bus, and used where the device was not registered on a bus. Is this the explanation?
I've searched on the meaning of "device-managed" in Linux, but nothing found.
Thank you
It talks about device-managed variants of most of the API function like
Code:
gpiod_get()Code:
devm_gpiod_get()The parameters and return types of both are the same, but when is it right to use each version?
I've seen
Code:
devm_gpiod_get()Code:
gpiod_get()I've searched on the meaning of "device-managed" in Linux, but nothing found.
Thank you
Statistics: Posted by bcperth — Thu May 01, 2025 12:30 am