Home
last modified time | relevance | path

Searched refs:child_ns (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/tools/testing/selftests/timens/
H A Dprocfs.c27 static int child_ns, parent_ns; variable
52 child_ns = open(path, O_RDONLY); in init_namespaces()
53 if (child_ns <= 0) in init_namespaces()
56 if (fstat(child_ns, &st2)) in init_namespaces()
133 if (switch_ns(child_ns)) in check_uptime()
134 return pr_err("switch_ns(%d)", child_ns); in check_uptime()
162 if (switch_ns(child_ns)) in check_stat_btime()
163 return pr_err("switch_ns(%d)", child_ns); in check_stat_btime()
H A Dtimens.c46 static int child_ns, parent_ns = -1; variable
75 child_ns = open(path, O_RDONLY); in init_namespaces()
76 if (child_ns <= 0) in init_namespaces()
79 if (fstat(child_ns, &st2)) in init_namespaces()
105 return pr_err("switch_ns(%d)", child_ns); in test_gettime()
113 if (switch_ns(child_ns)) in test_gettime()
114 return pr_err("switch_ns(%d)", child_ns); in test_gettime()