diff options
| author | 2024-12-10 09:39:02 +0000 | |
|---|---|---|
| committer | 2024-12-16 16:12:34 +0100 | |
| commit | 284ae0be4dcafff0a154c1e69e7430c144a7ddc2 (patch) | |
| tree | 9c51223039af8413237737347f3d62ef4837d52b /rust/helpers/helpers.c | |
| parent | rust: miscdevice: access the `struct miscdevice` from fops->open() (diff) | |
| download | wireguard-linux-284ae0be4dcafff0a154c1e69e7430c144a7ddc2.tar.xz wireguard-linux-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 <lee@kernel.org>
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Tested-by: Lee Jones <lee@kernel.org>
Reviewed-by: Danilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/20241210-miscdevice-file-param-v3-3-b2a79b666dc5@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
