Thread (19 messages) 19 messages, 3 authors, 6d ago

Re: [PATCH v4 6/9] rust: miscdevice: set fops.owner from driver module pointer

From: "Gary Guo" <gary@garyguo.net>
Date: 2026-06-23 13:52:00
Also in: dri-devel, driver-core, linux-block, linux-kselftest, linux-pci, lkml, netdev, nova-gpu, rust-for-linux

On Tue Jun 23, 2026 at 7:29 AM BST, Alvin Sun wrote:
Set the miscdevice fops owner field from the driver module pointer
via the `this_module::<T::OwnerModule>()` helper, instead of
defaulting to null.

Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org>
Signed-off-by: Alvin Sun <redacted>
Reviewed-by: Gary Guo <gary@garyguo.net>
---
 rust/kernel/miscdevice.rs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help