__poll_for_resp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– __poll_for_resp β€” self poll completion for rcfw command πŸ’–

okay bestie, so this one is from the Kernel API Manual (section 9, kernel space, main character energy only) and it's literally all about self poll completion for rcfw command. no cap, that's the whole vibe. πŸ¦‹


✨ SYNOPSIS ✨

int __poll_for_resp (struct bnxt_qplib_rcfw *rcfw , u16 cookie );

like, that's the whole signature. she's short but she's iconic. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • rcfw β€” the rcfw channel instance of rdev. that's your whole setup, your home base, the rcfw of it all 🫢
  • cookie β€” the cookie you use to track the command. yes it's a cookie. no you can't eat it πŸ˜­πŸ“

🌸 DESCRIPTION 🌸

so here's the tea: __poll_for_resp works the same as __wait_for_resp, except β€” and this is the cute part β€” this function does self polling in short interval, because the interrupt is disabled. she's out here checking on her own, repeatedly, no waiting around for someone else to tell her what's up. independent queen behavior πŸ‘‘

⚠️ real talk though: this function cannot be called from non-sleepable context. not negotiable, not a vibe, just a hard no. do not try it. πŸ’€

⭐ RETURN ⭐

  • -ETIMEDOUT β€” if the command is not completed in the specific time interval. she waited, she polled, nothing happened, sad girl hours 😭
  • 0 β€” if the command is completed by the firmware. slay! success! we love a happy ending πŸ’–

🌈 SEE ALSO 🌈

go read the kernel file, bestie, it's right here:

iykyk, the whole friend group is linked up there πŸ§šπŸ’œ


that's the page, diva. this one lives in ./drivers/infiniband/hw/bnxt_re, it's dated October 2026, and it's filed under __poll_for_resp(9). now go poll your little heart out, but not from non-sleepable context, mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from