Home
last modified time | relevance | path

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

/linux-6.12.1/fs/
Dfile.c676 unsigned int fd, unsigned int max_fd) in __range_cloexec() argument
683 max_fd = min(last_fd(fdt), max_fd); in __range_cloexec()
684 if (fd <= max_fd) in __range_cloexec()
685 bitmap_set(fdt->close_on_exec, fd, max_fd - fd + 1); in __range_cloexec()
690 unsigned int max_fd) in __range_close() argument
697 max_fd = min(max_fd, n); in __range_close()
699 for (; fd <= max_fd; fd++) { in __range_close()
725 int __close_range(unsigned fd, unsigned max_fd, unsigned int flags) in __close_range() argument
733 if (fd > max_fd) in __close_range()
737 struct fd_range range = {fd, max_fd}, *punch_hole = &range; in __close_range()
[all …]
Dopen.c1590 SYSCALL_DEFINE3(close_range, unsigned int, fd, unsigned int, max_fd, in SYSCALL_DEFINE3() argument
1593 return __close_range(fd, max_fd, flags); in SYSCALL_DEFINE3()
/linux-6.12.1/include/linux/
Dfdtable.h118 extern int __close_range(unsigned int fd, unsigned int max_fd, unsigned int flags);
Dsyscalls.h446 asmlinkage long sys_close_range(unsigned int fd, unsigned int max_fd,
/linux-6.12.1/tools/testing/selftests/bpf/
Dtest_sockmap.c601 int slct, recvp = 0, recv, max_fd = fd; in msg_loop() local
640 slct = select(max_fd + 1, &w, NULL, NULL, &timeout); in msg_loop()
656 slct = select(max_fd + 1, NULL, NULL, &w, &timeout); in msg_loop()
888 int s, rc, i, max_fd = p2; in forever_ping_pong() local
898 s = select(max_fd + 1, &w, NULL, NULL, &timeout); in forever_ping_pong()
907 for (i = 0; i <= max_fd && s > 0; ++i) { in forever_ping_pong()
/linux-6.12.1/tools/testing/selftests/core/
Dclose_range_test.c33 static inline int sys_close_range(unsigned int fd, unsigned int max_fd, in sys_close_range() argument
36 return syscall(__NR_close_range, fd, max_fd, flags); in sys_close_range()