Home
last modified time | relevance | path

Searched refs:maxfd (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/tools/power/acpi/tools/acpidbg/
Dacpidbg.c115 static int acpi_aml_set_fd(int fd, int maxfd, fd_set *set) in acpi_aml_set_fd() argument
117 if (fd > maxfd) in acpi_aml_set_fd()
118 maxfd = fd; in acpi_aml_set_fd()
120 return maxfd; in acpi_aml_set_fd()
271 int maxfd = 0; in acpi_aml_loop() local
290 maxfd = acpi_aml_set_fd(STDIN_FILENO, maxfd, &rfds); in acpi_aml_loop()
298 maxfd = acpi_aml_set_fd(fd, maxfd, &wfds); in acpi_aml_loop()
302 maxfd = acpi_aml_set_fd(fd, maxfd, &rfds); in acpi_aml_loop()
304 maxfd = acpi_aml_set_fd(STDOUT_FILENO, maxfd, &wfds); in acpi_aml_loop()
306 ret = select(maxfd+1, &rfds, &wfds, NULL, &tv); in acpi_aml_loop()
[all …]
/linux-6.12.1/fs/
Dfile.c470 unsigned int maxfd = fdt->max_fds; /* always multiple of BITS_PER_LONG */ in find_next_fd() local
471 unsigned int maxbit = maxfd / BITS_PER_LONG; in find_next_fd()
475 if (bitbit >= maxfd) in find_next_fd()
476 return maxfd; in find_next_fd()
479 return find_next_zero_bit(fdt->open_fds, maxfd, start); in find_next_fd()