hwrm_req_timeout(9)
π hwrm_req_timeout(9) β from the Kernel API Manual, bestie β¨
Okay so this page is literally the glow-up guide for hwrm_req_timeout β the little function that lets you tell a request "hey babe, you've got this much time, no pressure π«Ά" before it has to be done. It lives in the Kernel API Manual, and yes, it's as niche and iconic as it sounds.
β¨ NAME β¨
hwrm_req_timeout β sets the completion timeout for the request. That's it, that's the whole vibe. π
πΈ SYNOPSIS πΈ
void hwrm_req_timeout (struct bnxt *bp , void *req , unsigned int
timeout );
π¦ ARGUMENTS π¦
bpβ the driver context. Your main character struct, the one that knows everything. πreqβ the request you're setting the timeout on. The one getting the deadline. β°timeoutβ the timeout, in milliseconds. Not seconds, bestie, milliseconds. Get it right. π
π DESCRIPTION π
So what this does is set the timeout that's associated with the request β and that timeout is the one that gets used for subsequent calls to hwrm_req_send. Like, you configure it once here and then it's locked in for whenever you actually send. Slay. π₯
And why would you even need this? Because some requests are long running β they're the slow ones, the ones that need a little extra grace β and they genuinely require a different timeout than the default. So you come in with this function and you're like "no babe, take your time, I believe in you" and you give it a bigger window. Not me being emotionally supportive of a kernel request ππ«Ά
π SEE ALSO π
Kernel file ./drivers/net/ethernet/broadcom/bnxt/bnxt_hwrm.c β that's where the magic lives, iykyk. β¨
And the whole friend group, fr fr:
__hwrm_req_init(9)hwrm_req_alloc_flags(9)hwrm_req_replace(9)hwrm_req_flags(9)hwrm_req_hold(9)hwrm_req_drop(9)hwrm_req_send(9)hwrm_req_send_silent(9)hwrm_req_dma_slice(9)
Lowkey obsessed with how this whole family of functions just vibes together in one file. Go read the source, it's giving documentation-adjacent. π
Okay that's the page!! π Big sign-off energy: this one came from ./drivers/net/ethernet/broadco... (yes it's truncated like that, don't come for me) and it's dated October 2026, and the whole thing is filed under hwrm_req_timeout(9) in the Kernel API Manual. Periodt. π
π§ββοΈ
π¦ 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