Searched refs:max_fd (Results 1 – 6 of 6) sorted by relevance
/linux-6.12.1/fs/ |
D | file.c | 676 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 = ⦥ in __close_range() [all …]
|
D | open.c | 1590 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/ |
D | fdtable.h | 118 extern int __close_range(unsigned int fd, unsigned int max_fd, unsigned int flags);
|
D | syscalls.h | 446 asmlinkage long sys_close_range(unsigned int fd, unsigned int max_fd,
|
/linux-6.12.1/tools/testing/selftests/bpf/ |
D | test_sockmap.c | 601 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/ |
D | close_range_test.c | 33 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()
|