Re: Rust kernel policy
From: Jarkko Sakkinen
Date: Wed Feb 19 2025 - 13:23:00 EST
On Wed, 2025-02-19 at 11:33 -0500, Steven Rostedt wrote:
>
> But we should be encouraging the use of:
>
> scoped_guard(mutex)(&my_mutex) {
> /* Do the work needed for for my_mutex */
> }
>
> Which does work out very well. And the fact that the code guarded by
> the
> mutex is now also indented, it makes it easier to review.
I just discovered this two days working while working on a new
V4L2 driver. They are a gem! Definitely will decorate most of
lock use with them for the RFC patch set.
Don't need must pitch with those tbh...
>
> -- Steve
>
BR, Jarkko