Searched refs:child_ns (Results 1 – 2 of 2) sorted by relevance
| /Linux-v5.15/tools/testing/selftests/timens/ |
| D | procfs.c | 29 static int child_ns, parent_ns; variable 54 child_ns = open(path, O_RDONLY); in init_namespaces() 55 if (child_ns <= 0) in init_namespaces() 58 if (fstat(child_ns, &st2)) in init_namespaces() 135 if (switch_ns(child_ns)) in check_uptime() 136 return pr_err("switch_ns(%d)", child_ns); in check_uptime() 164 if (switch_ns(child_ns)) in check_stat_btime() 165 return pr_err("switch_ns(%d)", child_ns); in check_stat_btime()
|
| D | timens.c | 48 static int child_ns, parent_ns = -1; variable 77 child_ns = open(path, O_RDONLY); in init_namespaces() 78 if (child_ns <= 0) in init_namespaces() 81 if (fstat(child_ns, &st2)) in init_namespaces() 107 return pr_err("switch_ns(%d)", child_ns); in test_gettime() 115 if (switch_ns(child_ns)) in test_gettime() 116 return pr_err("switch_ns(%d)", child_ns); in test_gettime()
|