aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorAlexandre Courbot <[email protected]>2025-04-11 12:09:39 +0000
committerDanilo Krummrich <[email protected]>2025-04-22 15:21:16 +0000
commit0c848b3adb45acc1722f94333e2a97bf1720e431 (patch)
tree3bea773d26d30c7c646b7d71332baa1ab31dded9 /rust/helpers/helpers.c
parentrust/revocable: add try_access_with() convenience method (diff)
downloadkernel-0c848b3adb45acc1722f94333e2a97bf1720e431.tar.gz
kernel-0c848b3adb45acc1722f94333e2a97bf1720e431.zip
samples: rust: convert PCI rust sample driver to use try_access_with()
This method limits the scope of the revocable guard and is considered safer to use for most cases, so let's showcase it here. Reviewed-by: Benno Lossin <[email protected]> Signed-off-by: Alexandre Courbot <[email protected]> Acked-by: Miguel Ojeda <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Danilo Krummrich <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions