Re: [PATCH v2 1/7] iio: core: Add and export __iio_dev_mode_lock()

From: David Lechner
Date: Sat Dec 27 2025 - 13:14:07 EST


On 12/27/25 11:51 AM, Kurt Borja wrote:
> Hi David,
>
> On Tue Dec 23, 2025 at 12:19 PM -05, David Lechner wrote:
>> On 12/11/25 8:45 PM, Kurt Borja wrote:
>>> Add infallible wrappers around the internal IIO mode lock.
>>
>> Not sure what "infallible" is supposed to mean in this context. Maybe
>> referring to autocleanup?
>
> I meant wrappers that do not fail i.e. return void. Should I word it
> differently?
>
Ah, I think you mean "unconditional" - as in "not a conditional
lock".

In the body of the commit message, you could spell this out more that
normally, this is used as a conditional lock, but to prepare for autocleanup
and we need an unconditional lock for the base guard() to be extended
with the conditional ACQUIRE().