Searched refs:open_fds (Results 1 – 6 of 6) sorted by relevance
/linux-6.6.21/tools/testing/selftests/core/ |
D | close_range_test.c | 56 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 …]
|
/linux-6.6.21/fs/ |
D | file.c | 37 kvfree(fdt->open_fds); in __free_fdtable() 61 memcpy(nfdt->open_fds, ofdt->open_fds, cpy); in copy_fd_bitmaps() 62 memset((char *)nfdt->open_fds + cpy, 0, set); in copy_fd_bitmaps() 146 fdt->open_fds = data; in alloc_fdtable() 262 __set_bit(fd, fdt->open_fds); in __set_open_fd() 264 if (!~fdt->open_fds[fd]) in __set_open_fd() 270 __clear_bit(fd, fdt->open_fds); in __clear_open_fd() 281 if (fdt->open_fds[--i]) in count_open_files() 337 new_fdt->open_fds = newf->open_fds_init; in dup_fd() 427 set = fdt->open_fds[j++]; in close_files() [all …]
|
D | select.c | 422 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()
|
/linux-6.6.21/include/linux/ |
D | fdtable.h | 31 unsigned long *open_fds; member 43 return test_bit(fd, fdt->open_fds); in fd_is_open()
|
/linux-6.6.21/fs/proc/ |
D | fd.c | 297 *count = bitmap_weight(fdt->open_fds, fdt->max_fds); in proc_readfd_count()
|
/linux-6.6.21/Documentation/filesystems/ |
D | files.rst | 24 elements - the fd sets (open_fds and close_on_exec, the
|