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

/linux-master/fs/
H A Dfile.c690 unsigned int fd, unsigned int max_fd)
697 max_fd = min(last_fd(fdt), max_fd);
698 if (fd <= max_fd)
699 bitmap_set(fdt->close_on_exec, fd, max_fd - fd + 1);
704 unsigned int max_fd)
711 max_fd = min(max_fd, n);
713 for (; fd <= max_fd; fd++) {
733 * @max_fd
689 __range_cloexec(struct files_struct *cur_fds, unsigned int fd, unsigned int max_fd) argument
703 __range_close(struct files_struct *files, unsigned int fd, unsigned int max_fd) argument
739 __close_range(unsigned fd, unsigned max_fd, unsigned int flags) argument
[all...]
H A Dopen.c1572 * @max_fd: last file descriptor to close
1576 * from @fd up to and including @max_fd are closed.
1579 SYSCALL_DEFINE3(close_range, unsigned int, fd, unsigned int, max_fd,
1582 return __close_range(fd, max_fd, flags);
/linux-master/include/linux/
H A Dfdtable.h121 extern int __close_range(unsigned int fd, unsigned int max_fd, unsigned int flags);
H A Dsyscalls.h446 asmlinkage long sys_close_range(unsigned int fd, unsigned int max_fd,
/linux-master/tools/testing/selftests/core/
H A Dclose_range_test.c20 static inline int sys_close_range(unsigned int fd, unsigned int max_fd, argument
23 return syscall(__NR_close_range, fd, max_fd, flags);
/linux-master/tools/testing/selftests/bpf/
H A Dtest_sockmap.c600 int slct, recvp = 0, recv, max_fd = fd; local
639 slct = select(max_fd + 1, &w, NULL, NULL, &timeout);
655 slct = select(max_fd + 1, NULL, NULL, &w, &timeout);
886 int s, rc, i, max_fd = p2; local
896 s = select(max_fd + 1, &w, NULL, NULL, &timeout);
905 for (i = 0; i <= max_fd && s > 0; ++i) {

Completed in 150 milliseconds