1 // SPDX-License-Identifier: GPL-2.0
3 #include <linux/pid_namespace.h>
4 #include <linux/cleanup.h>
6 struct pid_namespace
*rust_helper_get_pid_ns(struct pid_namespace
*ns
)
11 void rust_helper_put_pid_ns(struct pid_namespace
*ns
)
16 /* Get a reference on a task's pid namespace. */
17 struct pid_namespace
*rust_helper_task_get_pid_ns(struct task_struct
*task
)
19 struct pid_namespace
*pid_ns
;
22 pid_ns
= task_active_pid_ns(task
);