rtas_busy_delay_time(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rtas_busy_delay_time β€” a Kernel API Manual moment (section 9, bestie)

okay so this is rtas_busy_delay_time, and honestly? it does exactly one tiny little thing and it does it flawlessly. no notes. the icon behavior. ✨

Basically: you hand it an RTAS status value, and it hands you back the suggested delay time in milliseconds. that's it. that's the whole vibe. πŸŽ€


🌸 SYNOPSIS

unsigned int rtas_busy_delay_time (int status );

🫢 ARGUMENTS

  • status β€” a value that came back from rtas_call or some similar API that returns the status of an RTAS function call. it's giving "receipts from the firmware." keep it exactly as you got it, don't be weird about it. πŸ’–

πŸ¦‹ CONTEXT

Any context. literally any. no restrictions, no dress code, main character energy across the board. πŸ’…


πŸ”₯ RETURN

here's the tea, and it's a whole lookbook of numbers:

  • 100000 β€” if status is 9905. huge delay. massive. we're waiting a whole 100 seconds. 😭
  • 10000 β€” if status is 9904. ten seconds of patience, bestie.
  • 1000 β€” if status is 9903. one second. cute.
  • 100 β€” if status is 9902. a lil 100 ms moment.
  • 10 β€” if status is 9901. blink and it's done.
  • 1 β€” if status is either 9900 or -2.⚠️ lowkey this one is "wrong" for -2, but some callers literally depend on this behavior, so we keep it. the absolute worst case is that they delay for longer than necessary. no cap, that's the entire consequence. 🫢
  • 0 β€” if status is not a busy or extended delay value. so like, not our problem, zero ms, moving on. ✨
ngl the -2 thing is a legacy vibe we're all just respecting at this point. do not "fix" it, do not come for it, it's load-bearing. πŸ’€

πŸ‘‘ SEE ALSO

Kernel file ./arch/powerpc/kernel/rtas.c + the whole friend group: struct rtas_function(9), rtas_function_token(9), rtas_call_unlocked(9), rtas_call(9), rtas_busy_delay(9), rtas_ibm_suspend_me(9), rtas_activate_firmware(9), get_pseries_errorlog(9). go say hi to all of them. 🌈


and that's the page! πŸŽ€ sourced from ./arch/powerpc/kernel, dated October 2026, and living comfortably in the Kernel API Manual. mwah. πŸ’–βœ¨πŸ“

πŸ“¦ where this page comes from