Re: [RFC PATCH v4 2/3] rust: add minimal IIO subsystem abstractions
From: Muchamad Coirul Anwar
Date: Tue Jul 14 2026 - 12:24:53 EST
On Sat, 11 Jul 2026 at 19:12, Danilo Krummrich <dakr@xxxxxxxxxx> wrote:
>
> On Tue Jul 7, 2026 at 5:15 PM CEST, Muchamad Coirul Anwar wrote:
> > Add safe Rust wrappers for the Linux IIO (Industrial I/O) subsystem:
>
> Does IIO's iio_device_unregister() synchronize against in-flight IOCTLs?
>From what I traced, yes. iio_device_unregister goes through
cdev_device_del, device_del, sysfs_remove_dir, and ends up in
kernfs_drain which waits for active sysfs readers to finish.
Please correct me if I'm missing something here.
Thanks
Coirul