Home
last modified time | relevance | path

Searched refs:open_fds (Results 1 – 6 of 6) sorted by relevance

/openbmc/linux/tools/testing/selftests/core/
H A Dclose_range_test.c56 int open_fds[101]; in TEST() local
58 for (i = 0; i < ARRAY_SIZE(open_fds); i++) { in TEST()
67 open_fds[i] = fd; in TEST()
70 EXPECT_EQ(-1, sys_close_range(open_fds[0], open_fds[100], -1)) { in TEST()
75 EXPECT_EQ(0, sys_close_range(open_fds[0], open_fds[50], 0)); in TEST()
78 EXPECT_EQ(-1, fcntl(open_fds[i], F_GETFL)); in TEST()
81 EXPECT_GT(fcntl(open_fds[i], F_GETFL), -1); in TEST()
91 EXPECT_EQ(0, sys_close_range(open_fds[51], open_fds[92], 0)); in TEST()
94 EXPECT_EQ(-1, fcntl(open_fds[i], F_GETFL)); in TEST()
97 EXPECT_GT(fcntl(open_fds[i], F_GETFL), -1); in TEST()
[all …]
/openbmc/linux/fs/
H A Dfile.c37 kvfree(fdt->open_fds); in __free_fdtable()
60 bitmap_copy_and_extend(nfdt->open_fds, ofdt->open_fds, in copy_fd_bitmaps()
142 fdt->open_fds = data; in alloc_fdtable()
258 __set_bit(fd, fdt->open_fds); in __set_open_fd()
260 if (!~fdt->open_fds[fd]) in __set_open_fd()
266 __clear_bit(fd, fdt->open_fds); in __clear_open_fd()
281 unsigned int last = find_last_bit(fdt->open_fds, fdt->max_fds); in sane_fdtable_size()
286 last = find_last_bit(fdt->open_fds, punch_hole->from); in sane_fdtable_size()
319 new_fdt->open_fds = newf->open_fds_init; in dup_fd()
408 set = fdt->open_fds[j++]; in close_files()
[all …]
H A Dselect.c422 unsigned long *open_fds; in max_select_fd() local
431 open_fds = fdt->open_fds + n; in max_select_fd()
436 if (!(set & ~*open_fds)) in max_select_fd()
442 open_fds--; in max_select_fd()
447 if (set & ~*open_fds) in max_select_fd()
/openbmc/linux/include/linux/
H A Dfdtable.h30 unsigned long *open_fds; member
42 return test_bit(fd, fdt->open_fds); in fd_is_open()
/openbmc/linux/Documentation/filesystems/
H A Dfiles.rst24 elements - the fd sets (open_fds and close_on_exec, the
/openbmc/linux/fs/proc/
H A Dfd.c303 *count = bitmap_weight(fdt->open_fds, fdt->max_fds); in proc_readfd_count()