On Sun, 16 Apr 2023 at 18:20, Sameh Mohamed <sameh4@xxxxxxx> wrote: > > Hello, > > Many thanks for your excellent work and contributions. I've been learning about libgpiod in the last few days. > > Studying the cxx bindings examples, particularly around line request, I looked up the C code for gpiod_line_request_get_values_subset and saw that it does not deal with any potential locks. > > I searched a bit on stackoverflow regarding Linux device drivers, and saw that it's basically up to the application to manage locks. > > As an inexperienced programmer in the Linux user-space; I have worked primarily in python and C++ client applications at a higher level, I wanted to confirm my understanding. If I am writing some library to run the RaspberryPi that will make use of libgpiod-2.0.1, it will be up to me to avoid locks when making line requests, etc. > > Thanks, > Sameh Yes! It's a design approach low-level C libraries usually take and libgpiod is no exception. Bart