summaryrefslogtreecommitdiff
path: root/rust/helpers/spinlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'rust/helpers/spinlock.c')
-rw-r--r--rust/helpers/spinlock.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/rust/helpers/spinlock.c b/rust/helpers/spinlock.c
index acc1376b833c..775ed4d549ae 100644
--- a/rust/helpers/spinlock.c
+++ b/rust/helpers/spinlock.c
@@ -22,3 +22,8 @@ void rust_helper_spin_unlock(spinlock_t *lock)
{
spin_unlock(lock);
}
+
+int rust_helper_spin_trylock(spinlock_t *lock)
+{
+ return spin_trylock(lock);
+}