Re: [RFC][PATCH 04/20] pspace: Allow multiple instaces of the process id namespace

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

 



+static inline int pspace_task_visible(struct pspace *pspace, struct

task_struct *tsk)

+{
+	return (tsk->pspace == pspace) ||
+		((tsk->pspace->child_reaper.pspace == pspace) &&
+		 (tsk->pspace->child_reaper.task == tsk));

<<< the logic with child_reaper which can be somehow partly inside pspace... and
this check is not that abvious.


This is the check for what shows up in /proc.

Given that is how I have explicitly documented things to work, (the
init process straddles the boundary) I fail to see how it is not obvious.
I was confused by the fact that child_reaper.pspace is actually a parent pspace.

Kirill

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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux