ssam_retry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 ssam_retry(9) β€” the kernel API manual, bestie edition 🌸

okay so you've stumbled into ssam_retry(9), which lives in the Kernel API Manual and is honestly one of those tiny macros that just quietly has your back. pull up a chair 🫢


✨ NAME ✨

ssam_retry β€” retry request in case of I/O errors or timeouts up to three times in total.

like, yes, that's the whole name section, it's a humble king πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

ssam_retry (request , args... );

that's it. that's the whole vibe. call it with a request and some args and let it cook πŸ“


πŸ’œ ARGUMENTS πŸ’œ

  • request β€” the request function you want to execute. and listen, it must return an integer, no cap. if it returns something else we're gonna have a bad time 😭
  • args β€” the arguments for the request function. all of them. whatever it needs, you pass along, angel πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

so what actually happens? you give it a request function, and it executes it β€” i.e. it calls request. simple. iconic. no notes.

but here's the main character energy: if that request comes back with -EREMOTEIO (which means I/O error, ew) or -ETIMEDOUT (the request, or the underlying packet, timed out β€” literally the worst), then request gets re-executed again. and again. up to three times in total. it's giving persistence, it's giving "I will not give up on you" 🌈

and if you're like "hmm, I want something more generic than this", go peep __ssam_retry β€” there's a more generic macro for exactly this purpose, iykyk πŸ”₯

⭐ RETURN ⭐

returns the return value of the last execution of request. so whichever attempt was the final one, that's the answer you're getting back, bestie πŸ’–


πŸ‘‘ SEE ALSO πŸ‘‘

the full squad, in order, because I would never leave anyone out:

go read them all. I'll wait. πŸ’€


and that's the page!! this little cutie comes from ./include/linux/surface_aggreg... and it's dated October 2026 β€” so yeah, mark your calendar, screenshot it, frame it, whatever you gotta do πŸ§šβ€β™€οΈβœ¨ mwah, bye bestie πŸ’…

πŸ“¦ where this page comes from