Re: [RFC PATCH V3 1/8] rust: Add initial bindings for OPP framework

From: Boqun Feng
Date: Tue Jul 09 2024 - 13:47:05 EST


On Tue, Jul 09, 2024 at 04:32:45PM +0530, Viresh Kumar wrote:
> On 03-07-24, 08:34, Boqun Feng wrote:
> > On Wed, Jul 03, 2024 at 12:44:26PM +0530, Viresh Kumar wrote:
> > > +// SAFETY: `OPP` only holds a pointer to a C OPP, which is safe to be used from any thread.
> > > +unsafe impl Send for OPP {}
> > > +
> > > +// SAFETY: `OPP` only holds a pointer to a C OPP, references to which are safe to be used from any
> > > +// thread.
> > > +unsafe impl Sync for OPP {}
> > > +
> >
> > Same for the above safety comments, as they are still based on the old
> > implementation.
>
> Do I still need to change these ? Since we aren't always using ARef
> now.
>

Correct, you will still need to change these. You're welcome to submit
a draft version here and I can help take a look before you send out a
whole new version, if you prefer that way.

Regards,
Boqun

> --
> viresh