Searched refs:open_fds (Results 1 – 6 of 6) sorted by relevance
/linux-6.12.1/tools/testing/selftests/core/ |
D | close_range_test.c | 42 int open_fds[101]; in TEST() local 44 for (i = 0; i < ARRAY_SIZE(open_fds); i++) { in TEST() 53 open_fds[i] = fd; in TEST() 56 EXPECT_EQ(-1, sys_close_range(open_fds[0], open_fds[100], -1)) { in TEST() 62 ret = fcntl(open_fds[i], F_DUPFD_QUERY, open_fds[i + 1]); in TEST() 70 EXPECT_EQ(0, sys_close_range(open_fds[0], open_fds[50], 0)); in TEST() 73 EXPECT_EQ(-1, fcntl(open_fds[i], F_GETFL)); in TEST() 76 EXPECT_GT(fcntl(open_fds[i], F_GETFL), -1); in TEST() 86 EXPECT_EQ(0, sys_close_range(open_fds[51], open_fds[92], 0)); in TEST() 89 EXPECT_EQ(-1, fcntl(open_fds[i], F_GETFL)); in TEST() [all …]
|
/linux-6.12.1/fs/ |
D | file.c | 37 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() 272 return test_bit(fd, fdt->open_fds); in fd_is_open() 286 unsigned int last = find_last_bit(fdt->open_fds, fdt->max_fds); in sane_fdtable_size() 291 last = find_last_bit(fdt->open_fds, punch_hole->from); in sane_fdtable_size() 324 new_fdt->open_fds = newf->open_fds_init; in dup_fd() [all …]
|
D | select.c | 419 unsigned long *open_fds; in max_select_fd() local 428 open_fds = fdt->open_fds + n; in max_select_fd() 433 if (!(set & ~*open_fds)) in max_select_fd() 439 open_fds--; in max_select_fd() 444 if (set & ~*open_fds) in max_select_fd()
|
/linux-6.12.1/include/linux/ |
D | fdtable.h | 30 unsigned long *open_fds; member
|
/linux-6.12.1/fs/proc/ |
D | fd.c | 304 *count = bitmap_weight(fdt->open_fds, fdt->max_fds); in proc_readfd_count()
|
/linux-6.12.1/Documentation/filesystems/ |
D | files.rst | 24 elements - the fd sets (open_fds and close_on_exec, the
|