hlist_replace_rcu(&old->pid_links[type], &new->pid_links[type]);
}
-struct task_struct *pid_task(struct pid *pid, enum pid_type type)
+struct task_struct *pid_task(const struct pid *pid, enum pid_type type)
{
struct task_struct *result = NULL;
if (pid) {
}
EXPORT_SYMBOL_GPL(get_task_pid);
-struct task_struct *get_pid_task(struct pid *pid, enum pid_type type)
+struct task_struct *get_pid_task(const struct pid *pid, enum pid_type type)
{
struct task_struct *result;
rcu_read_lock();