summaryrefslogtreecommitdiff
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorWedson Almeida Filho <wedsonaf@gmail.com>2024-06-15 00:30:34 +0200
committerDanilo Krummrich <dakr@kernel.org>2024-08-13 15:53:39 +0200
commitc4ec5466ebac4101527fd5137bcf1baa5c5d1d22 (patch)
treec1e617e5799698dc0fb5aa8825aeea50ca9e1a42 /rust/helpers.c
parent85c75736d26cc5d4cbca02b24df1988cda98c669 (diff)
rust: implement `IdArray`, `IdTable` and `RawDeviceId`
Most subsystems use some kind of ID to match devices and drivers. Hence, we have to provide Rust drivers an abstraction to register an ID table for the driver to match. Generally, those IDs are subsystem specific and hence need to be implemented by the corresponding subsystem. However, the `IdArray`, `IdTable` and `RawDeviceId` types provide a generalized implementation that makes the life of subsystems easier to do so. Co-developed-by: Asahi Lina <lina@asahilina.net> Signed-off-by: Asahi Lina <lina@asahilina.net> Signed-off-by: Wedson Almeida Filho <wedsonaf@gmail.com> Co-developed-by: Danilo Krummrich <dakr@redhat.com> Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions