diff options
author | Danilo Krummrich <dakr@kernel.org> | 2024-10-15 16:54:21 +0200 |
---|---|---|
committer | Danilo Krummrich <dakr@kernel.org> | 2024-10-22 22:55:08 +0200 |
commit | 42fa2cd4032fe86eed5681b8aa0b72fbdbdad0d3 (patch) | |
tree | 311ea125a2763916283f76ee0520bc841115f6b3 /MAINTAINERS | |
parent | ec5f6bae35fa8db1243ff88be9565d717598beb5 (diff) |
rust: add devres abstraction
Add a Rust abstraction for the kernel's devres (device resource
management) implementation.
The Devres type acts as a container to manage the lifetime and
accessibility of device bound resources. Therefore it registers a
devres callback and revokes access to the resource on invocation.
Users of the Devres abstraction can simply free the corresponding
resources in their Drop implementation, which is invoked when either the
Devres instance goes out of scope or the devres callback leads to the
resource being revoked, which implies a call to drop_in_place().
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'MAINTAINERS')
-rw-r--r-- | MAINTAINERS | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index 0a8882252257..97914d0752fb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6983,6 +6983,7 @@ F: include/linux/property.h F: lib/kobj* F: rust/kernel/device.rs F: rust/kernel/device_id.rs +F: rust/kernel/devres.rs F: rust/kernel/driver.rs DRIVERS FOR OMAP ADAPTIVE VOLTAGE SCALING (AVS) |