Re: [PATCH] vt: Make vt_pid a struct pid (making it pid wraparound safe).

From: Dave Hansen
Date: Mon Sep 11 2006 - 13:22:28 EST


On Sun, 2006-09-10 at 06:41 -0600, Eric W. Biederman wrote:
>
> - vc->vt_pid = current->pid;
> + put_pid(xchg(&vc->vt_pid, get_pid(task_pid(current))));

Would it make any sense to have a get_current_pid()? It might reduce
the horribly confusing number of parenthesis there.

-- Dave

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/