__poll_for_resp(9)
π __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:
- Kernel file
./drivers/infiniband/hw/bnxt_re/qplib_rcfw.c bnxt_qplib_map_rc(9)bnxt_re_is_fw_stalled(9)__wait_for_resp(9)__block_for_resp(9)__bnxt_qplib_rcfw_send_message(9)bnxt_qplib_rcfw_send_message(9)
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
- 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