]> Git Repo - J-linux.git/blob - rust/helpers/task.c
rust: alloc: Fix `ArrayLayout` allocations
[J-linux.git] / rust / helpers / task.c
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 }
This page took 0.027031 seconds and 4 git commands to generate.