Searched refs:tmp_fd (Results 1 - 3 of 3) sorted by relevance
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | mmap.c | 22 int err, duration = 0, i, data_map_fd, data_map_id, tmp_fd, rdmap_fd; local 272 tmp_fd = bpf_map_get_fd_by_id(data_map_id); 273 if (CHECK(tmp_fd < 0, "get_map_by_id", "failed %d\n", errno)) { 277 close(tmp_fd); 291 tmp_fd = bpf_map_get_fd_by_id(data_map_id); 292 if (CHECK(tmp_fd >= 0, "get_map_by_id_after", 293 "unexpectedly succeeded %d\n", tmp_fd)) { 294 close(tmp_fd);
|
/linux-master/tools/lib/bpf/ |
H A D | libbpf_internal.h | 614 /* Point *fixed_fd* to the same file that *tmp_fd* points to. 615 * Regardless of success, *tmp_fd* is closed. 618 static inline int reuse_fd(int fixed_fd, int tmp_fd) argument 622 err = sys_dup2(tmp_fd, fixed_fd); 624 close(tmp_fd); /* clean up temporary FD */
|
/linux-master/tools/perf/ |
H A D | builtin-inject.c | 85 int tmp_fd; member in struct:guest_session 865 ssize_t ret = writen(gs->tmp_fd, buf, sz); 1277 gs->tmp_fd = mkstemp(gs->tmp_file_name); 1278 if (gs->tmp_fd < 0) 1292 if (lseek(gs->tmp_fd, 0, SEEK_SET)) 1320 if (gs->tmp_fd >= 0) 1321 close(gs->tmp_fd); 1390 ret = readn(gs->tmp_fd, buf, hdr_sz); 1402 ret = readn(gs->tmp_fd, buf, hdr->size - hdr_sz);
|
Completed in 119 milliseconds