Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/core/
A Dclose_range_test.c74 EXPECT_EQ(-1, sys_close_range(open_fds[0], open_fds[100], -1)) { in TEST()
79 EXPECT_EQ(0, sys_close_range(open_fds[0], open_fds[50], 0)); in TEST()
95 EXPECT_EQ(0, sys_close_range(open_fds[51], open_fds[92], 0)); in TEST()
104 EXPECT_EQ(0, sys_close_range(open_fds[93], open_fds[99], 0)); in TEST()
111 EXPECT_EQ(0, sys_close_range(open_fds[100], open_fds[100], 0)); in TEST()
142 ret = sys_close_range(open_fds[0], open_fds[50], in TEST()
163 ret = sys_close_range(open_fds[51], open_fds[92], in TEST()
177 ret = sys_close_range(open_fds[93], open_fds[99], in TEST()
189 ret = sys_close_range(open_fds[100], open_fds[100], in TEST()
348 ret = sys_close_range(open_fds[0], open_fds[50], in TEST()
[all …]
/linux/fs/
A Dfile.c37 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()
130 fdt->open_fds = data; in alloc_fdtable()
246 __set_bit(fd, fdt->open_fds); in __set_open_fd()
248 if (!~fdt->open_fds[fd]) in __set_open_fd()
254 __clear_bit(fd, fdt->open_fds); in __clear_open_fd()
265 if (fdt->open_fds[--i]) in count_open_files()
308 new_fdt->open_fds = newf->open_fds_init; in dup_fd()
398 set = fdt->open_fds[j++]; in close_files()
[all …]
A Dselect.c421 unsigned long *open_fds; in max_select_fd() local
430 open_fds = fdt->open_fds + n; in max_select_fd()
435 if (!(set & ~*open_fds)) in max_select_fd()
441 open_fds--; in max_select_fd()
446 if (set & ~*open_fds) in max_select_fd()
/linux/include/linux/
A Dfdtable.h31 unsigned long *open_fds; member
43 return test_bit(fd, fdt->open_fds); in fd_is_open()
/linux/Documentation/filesystems/
A Dfiles.rst24 elements - the fd sets (open_fds and close_on_exec, the

Completed in 11 milliseconds