summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2025-04-11 21:09:39 +0900
committerDanilo Krummrich <dakr@kernel.org>2025-04-22 17:21:16 +0200
commit0c848b3adb45acc1722f94333e2a97bf1720e431 (patch)
tree3bea773d26d30c7c646b7d71332baa1ab31dded9 /rust/helpers/helpers.c
parent80e62fcea4f3ce8c7cc3205d7543e532b255d322 (diff)
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 <benno.lossin@proton.me> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Acked-by: Miguel Ojeda <ojeda@kernel.org> Link: https://lore.kernel.org/r/20250411-try_with-v4-2-f470ac79e2e2@nvidia.com Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions