Re: [WIP RFC v2 31/35] rust: drm: Add Device::event_lock()

2024-11-28 Thread Daniel Almeida
Hi Lyude, > On 30 Sep 2024, at 20:10, Lyude Paul wrote: > > This is just a crate-private helper to use Lock::from_raw() to provide an > immutable reference to the DRM event_lock, so that it can be used like a > normal rust spinlock. We'll need this for adding vblank related bindings. > > Signed

[WIP RFC v2 31/35] rust: drm: Add Device::event_lock()

2024-09-30 Thread Lyude Paul
This is just a crate-private helper to use Lock::from_raw() to provide an immutable reference to the DRM event_lock, so that it can be used like a normal rust spinlock. We'll need this for adding vblank related bindings. Signed-off-by: Lyude Paul --- rust/kernel/drm/device.rs | 7 +++ 1 file