Home
last modified time | relevance | path

Searched refs:last_fd (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/
Dperf_buffer.c53 int last_fd = -1, fd; in serial_test_perf_buffer() local
122 CHECK(fd < 0 || last_fd == fd, "fd_check", "last fd %d == fd %d\n", last_fd, fd); in serial_test_perf_buffer()
123 last_fd = fd; in serial_test_perf_buffer()
Dtc_opts.c2411 int err, ifindex, i, prog_fd, last_fd = -1; in test_tc_opts_max_target() local
2430 last_fd = prog_fd; in test_tc_opts_max_target()
2439 if (last_fd > 0) in test_tc_opts_max_target()
2440 opta.relative_fd = last_fd; in test_tc_opts_max_target()
2446 if (last_fd > 0) in test_tc_opts_max_target()
2447 close(last_fd); in test_tc_opts_max_target()
/Linux-v6.6/fs/
Dfile.c677 static inline unsigned last_fd(struct fdtable *fdt) in last_fd() function
690 max_fd = min(last_fd(fdt), max_fd); in __range_cloexec()
703 n = last_fd(files_fdtable(files)); in __range_close()
759 if (max_fd >= last_fd(files_fdtable(cur_fds))) in __close_range()