On Tuesday 2 July 2024 11:15:11 CEST Bartosz Golaszewski wrote: > Therefore, my advice is to not have the API that can lead to TOCTOU, even > if > > by accident. > > Unfortunately there's one issue with the above: requesting a line > (even as input) may result in the kernel driver triggering a physical > change in hardware which may be undesirable. Inspecting the "Used" > property only results in fetching a flag from the kernel and will > never make the driver act upon HW. Ah, that makes sense. Thank you for the explanation. -- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Principal Engineer - Intel DCAI Platform & System Engineering