// SPDX-License-Identifier: GPL-2.0 #include #include 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); } EXPORT_SYMBOL_GPL(rust_helper_get_task_struct); void rust_helper_put_task_struct(struct task_struct *t) { put_task_struct(t); } EXPORT_SYMBOL_GPL(rust_helper_put_task_struct);