summaryrefslogtreecommitdiff
path: root/rust/helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'rust/helpers.c')
-rw-r--r--rust/helpers.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/rust/helpers.c b/rust/helpers.c
index 6e5b2c953d36..2cb7b82053d8 100644
--- a/rust/helpers.c
+++ b/rust/helpers.c
@@ -103,6 +103,12 @@ long rust_helper_PTR_ERR(__force const void *ptr)
}
EXPORT_SYMBOL_GPL(rust_helper_PTR_ERR);
+struct task_struct *rust_helper_get_current(void)
+{
+ return current;
+}
+EXPORT_SYMBOL_GPL(rust_helper_get_current);
+
void rust_helper_get_task_struct(struct task_struct *t)
{
get_task_struct(t);