[PATCH v5 2/3] implement ww_mutex abstraction for the Rust tree

Daniel Almeida daniel.almeida at collabora.com
Tue Aug 5 12:41:43 UTC 2025


Hi Onur,

> On 5 Aug 2025, at 06:08, Onur Özkan <work at onurozkan.dev> wrote:
> 
> On Sat, 2 Aug 2025 11:15:07 -0300
> Daniel Almeida <daniel.almeida at collabora.com> wrote:
> 
>> Btw, I can also try to implement a proof of concept, so long as
>> people agree that this approach makes sense.
> 
> It's not necessary to provide a full P.o.C but a small demonstration of
> the kind of ww_mutex API you would prefer would be helpful. Seeing a few
> sample Rust use-cases (especially in comparison to existing C
> implementations) would give a clearer picture for me.
> 
> At the moment, the implementation is just a wrapper ([1]) around the C
> ww_mutex with no additional functionality, mostly because we don't have
> a solid consensus on the API design yet (we had some ideas about Tuple
> based approach, but seems like that isn't going to be useful for most
> of the ww_mutex users).
> 
> [1]: https://github.com/onur-ozkan/linux/commits/673e01a9c309c
> 
>> By the way, dri-devel seems to not be on cc? Added them now.
> 
> Thanks!
> 
> --
> 
> Regards,
> Onur
> 

This topic is on my TODO for this week.

— Daniel


More information about the dri-devel mailing list