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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux