task.c 329 B

12345678910111213141516171819
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <linux/export.h>
  3. #include <linux/sched/task.h>
  4. struct task_struct *rust_helper_get_current(void)
  5. {
  6. return current;
  7. }
  8. void rust_helper_get_task_struct(struct task_struct *t)
  9. {
  10. get_task_struct(t);
  11. }
  12. void rust_helper_put_task_struct(struct task_struct *t)
  13. {
  14. put_task_struct(t);
  15. }