Searched refs:child_ns (Results 1 - 2 of 2) sorted by relevance
/linux-master/tools/testing/selftests/timens/ |
H A D | procfs.c | 27 static int child_ns, parent_ns; variable 52 child_ns = open(path, O_RDONLY); 53 if (child_ns <= 0) 56 if (fstat(child_ns, &st2)) 60 return pr_err("The same child_ns after CLONE_NEWTIME"); 133 if (switch_ns(child_ns)) 134 return pr_err("switch_ns(%d)", child_ns); 162 if (switch_ns(child_ns)) 163 return pr_err("switch_ns(%d)", child_ns);
|
H A D | timens.c | 46 static int child_ns, parent_ns = -1; variable 75 child_ns = open(path, O_RDONLY); 76 if (child_ns <= 0) 79 if (fstat(child_ns, &st2)) 83 return pr_perror("The same child_ns after CLONE_NEWTIME"); 105 return pr_err("switch_ns(%d)", child_ns); 113 if (switch_ns(child_ns)) 114 return pr_err("switch_ns(%d)", child_ns);
|
Completed in 137 milliseconds