Re: [RFC PATCH v4 2/3] rust: add minimal IIO subsystem abstractions

Muchamad Coirul Anwar <[email protected]>
Newsgroups org.kernel.vger.linux-i2c,org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel
Message-ID <CAO26r3QDbT07dTsMfMB8Y6H+qBzh-PQxgcTTVKqJ7C9yv-emsQ@mail.gmail.com>
On Sat, 11 Jul 2026 at 19:12, Danilo Krummrich <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.