diff options
author | 2025-04-13 19:37:01 +0200 | |
---|---|---|
committer | 2025-04-17 15:21:48 +0200 | |
commit | f933b7489ffca25c9a33b65441679ee3d2943024 (patch) | |
tree | 85e2b0a605d80971649e1b2a7f51ceb7f9ddaac0 /rust/helpers/pci.c | |
parent | rust: pci: preserve device context in AsRef (diff) | |
download | wireguard-linux-f933b7489ffca25c9a33b65441679ee3d2943024.tar.xz wireguard-linux-f933b7489ffca25c9a33b65441679ee3d2943024.zip |
rust: device: implement Bound device context
The Bound device context indicates that a device is bound to a driver.
It must be used for APIs that require the device to be bound, such as
Devres or dma::CoherentAllocation.
Implement Bound and add the corresponding Deref hierarchy, as well as the
corresponding ARef conversion for this device context.
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Link: https://lore.kernel.org/r/20250413173758.12068-7-dakr@kernel.org
[ Add missing `::` prefix in macros. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust/helpers/pci.c')
0 files changed, 0 insertions, 0 deletions