poll_select_set_timeout(9)
π 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 atimespec64variable 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms