aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/mutex.c
diff options
context:
space:
mode:
authorLee Jones <[email protected]>2024-12-10 09:39:02 +0000
committerGreg Kroah-Hartman <[email protected]>2024-12-16 15:12:34 +0000
commit284ae0be4dcafff0a154c1e69e7430c144a7ddc2 (patch)
tree9c51223039af8413237737347f3d62ef4837d52b /rust/helpers/mutex.c
parentrust: miscdevice: access the `struct miscdevice` from fops->open() (diff)
downloadkernel-284ae0be4dcafff0a154c1e69e7430c144a7ddc2.tar.gz
kernel-284ae0be4dcafff0a154c1e69e7430c144a7ddc2.zip
rust: miscdevice: Provide accessor to pull out miscdevice::this_device
There are situations where a pointer to a `struct device` will become necessary (e.g. for calling into dev_*() functions). This accessor allows callers to pull this out from the `struct miscdevice`. Signed-off-by: Lee Jones <[email protected]> Signed-off-by: Alice Ryhl <[email protected]> Tested-by: Lee Jones <[email protected]> Reviewed-by: Danilo Krummrich <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions