Searched refs:netns_fd (Results 1 – 2 of 2) sorted by relevance
| /linux/tools/testing/selftests/namespaces/ |
| H A D | siocgskns_test.c | 42 int sock_fd, netns_fd, current_netns_fd; in TEST() local 50 netns_fd = ioctl(sock_fd, SIOCGSKNS); in TEST() 51 if (netns_fd < 0) { in TEST() 55 ASSERT_GE(netns_fd, 0); in TEST() 63 ASSERT_EQ(fstat(netns_fd, &st1), 0); in TEST() 68 close(netns_fd); in TEST() 79 int sock_fd, netns_fd, test_fd; in TEST() local 169 netns_fd = ioctl(sock_fd, SIOCGSKNS); in TEST() 170 if (netns_fd < 0) { in TEST() 174 ASSERT_GE(netns_fd, 0); in TEST() [all …]
|
| /linux/tools/lib/bpf/ |
| H A D | libbpf.c | 13190 bpf_program__attach_netns(const struct bpf_program *prog, int netns_fd) in bpf_program__attach_netns() argument 13192 return bpf_program_attach_fd(prog, netns_fd, "netns", NULL); in bpf_program__attach_netns()
|