aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/pci.c
diff options
context:
space:
mode:
authorDanilo Krummrich <[email protected]>2024-12-19 17:04:05 +0000
committerGreg Kroah-Hartman <[email protected]>2024-12-20 16:19:25 +0000
commit9b90864bb42befdc10fa5c60dd1d8033c8535726 (patch)
treea5ddfbfc73abc7b7d881c65c4cd2db1404ba9934 /rust/helpers/pci.c
parentrust: implement generic driver registration (diff)
downloadkernel-9b90864bb42befdc10fa5c60dd1d8033c8535726.tar.gz
kernel-9b90864bb42befdc10fa5c60dd1d8033c8535726.zip
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: Wedson Almeida Filho <[email protected]> Signed-off-by: Wedson Almeida Filho <[email protected]> Co-developed-by: Gary Guo <[email protected]> Signed-off-by: Gary Guo <[email protected]> Co-developed-by: Fabien Parent <[email protected]> Signed-off-by: Fabien Parent <[email protected]> Signed-off-by: Danilo Krummrich <[email protected]> Tested-by: Dirk Behme <[email protected]> Tested-by: Fabien Parent <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'rust/helpers/pci.c')
0 files changed, 0 insertions, 0 deletions