aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/pci.c
diff options
context:
space:
mode:
authorWedson Almeida Filho <[email protected]>2024-12-19 17:04:08 +0000
committerGreg Kroah-Hartman <[email protected]>2024-12-20 16:19:26 +0000
commit0494d9c82b0c722d8ce2af7dc5f92be6aef4625b (patch)
tree75e38c8092fa77ba5ee9eb609c8cb268db016da1 /rust/helpers/pci.c
parentrust: types: add `Opaque::pin_init` (diff)
downloadkernel-0494d9c82b0c722d8ce2af7dc5f92be6aef4625b.tar.gz
kernel-0494d9c82b0c722d8ce2af7dc5f92be6aef4625b.zip
rust: add `Revocable` type
Revocable allows access to objects to be safely revoked at run time. This is useful, for example, for resources allocated during device probe; when the device is removed, the driver should stop accessing the device resources even if another state is kept in memory due to existing references (i.e., device context data is ref-counted and has a non-zero refcount after removal of the device). Signed-off-by: Wedson Almeida Filho <[email protected]> Co-developed-by: Danilo Krummrich <[email protected]> Signed-off-by: Danilo Krummrich <[email protected]> Tested-by: Dirk Behme <[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