poll_select_set_timeout(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– poll_select_set_timeout(9) β€” timeout helper bestie πŸ’–

okay so welcome to the poll_select_set_timeout(9) page from the Kernel API Manual ✨ This is literally the helper that sets up the timeout value, and we're gonna get into it.

πŸŽ€ NAME πŸŽ€

poll_select_set_timeout β€” helper function to setup the timeout value 🫢

✨ SYNOPSIS ✨

       int poll_select_set_timeout (struct timespec64 *to , time64_t sec , long
       nsec );

🧚 ARGUMENTS 🧚

  • to β€” pointer to a timespec64 variable for the final timeout πŸ’…
  • sec β€” seconds (from user space) ⏱️
  • nsec β€” nanoseconds (from user space) 🧚

πŸ’… DESCRIPTION πŸ’…

Okay so note: we do not use a timespec for the user space value here. That way we can use the function for timeval and compat interfaces as well. iykyk ✨

Returns -EINVAL if sec/nsec are not normalized. Otherwise 0. periodt. πŸ’–

🌈 SEE ALSO 🌈

  • Kernel file ./fs/select.c πŸ‘€

mwah πŸ’‹ β€” sourced from ./fs, dated October 2026, and it's all for poll_select_set_timeout(9). no cap, that's the footer vibe. πŸŽ€

πŸ“¦ where this page comes from