xref: /linux-6.15/rust/helpers/task.c (revision d072acda)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 #include <linux/sched/task.h>
4 
5 struct task_struct *rust_helper_get_current(void)
6 {
7 	return current;
8 }
9 
10 void rust_helper_get_task_struct(struct task_struct *t)
11 {
12 	get_task_struct(t);
13 }
14 
15 void rust_helper_put_task_struct(struct task_struct *t)
16 {
17 	put_task_struct(t);
18 }
19